Don't remove the only intersection.

The previous code wrongly compared an intersection with itself while checking for duplicates.