Use sets when the main question is whether something has already been seen or should be unique. This is a common interview comparison because it tests both complexity judgment and code clarity.
The strongest answers connect the feature to reasoning and tradeoffs instead of reciting syntax.