Removing duplicate in list of pairs

Btw. is this question a continuation of this question?

If so, please continue in that discussion - It is easier to follow a discussion, if it is confined to one thread :slightly_smiling_face: