Use sets when comparing collect() results