What deduplication does
The tool compares each line to the lines already seen. The first time a line appears, it is kept; every later identical line is dropped. Order is preserved — the surviving lines stay in the order of their first appearance, which is usually what you want for a list that has a logical sequence.
Deduplication is exact by default: two lines must match character-for-character to be considered duplicates. That precision is what makes the two options below so important.