Define what counts as a duplicate
Case-insensitive mode can treat Apple and apple as the same line, while trimming can ignore accidental leading or trailing spaces.
Toolmera keeps the first surviving occurrence and preserves input order unless you explicitly choose a sort order.