Worked example: first versus last
For three lines Apple, Banana, Apple, keeping the first occurrence returns Apple then Banana. Keeping the last returns Banana then Apple, because retained lines stay in their original relative order. The choice can therefore change the resulting order as well as which copy survives.