equals

open operator override fun equals(other: Any?): Boolean

By CONTENT, including codecExtradata.

A data class holding a ByteArray gets an equals that compares that field by REFERENCE, so two descriptions of the same stream came out unequal and a Set of them held duplicates. The sibling's own StreamInfo has compared extradata by content from the start; this is the same rule on this side of the boundary.