To comp or not to comp

Nice. I like to use sets instead of an anonymous function equality check. But aren’t there performance overheads for effectively doing contains? Rather than equality? Or is the overhead of an anonymous function greater?