This could be a binary comprehension to avoid conversion from/to lists:

<< <<B>> || <<B>> <= Bin, B =/= $->>