Key idea
Match the collection to the question
If you need “have I seen this value?”, choose a Set. If you need “what value belongs to this key?”, choose a Map. If a key is a compound value, define a stable primitive key or use nested maps rather than expecting two objects to compare by shape.