from typing import Iterable


def filter_duplicate_key(
    line: bytes,
    line_number: int,
    marked_line_numbers: Iterable[int],
) -> bytes:
    """Return '' if first occurrence of the key otherwise return `line`."""
    if marked_line_numbers and line_number == sorted(marked_line_numbers)[0]:
        return b""

    return line