Compare two lists as sets: union , intersection , the items only one of them has, or the items exactly one of them has. Each list is deduplicated first, and the result keeps the order the items were first seen in unless you ask for it sorted. Useful for diffing two exports, two allowlists, or two sets of ids.