Remove duplicate lines

Wouldn’t this do it for you?

Or have a look at the Unique.Item node?