I would like to know if this type of special set operator exists, and if yes what is it called and if it has any other special properties.
Lets say I have this set $S$ of items. Like all sets, if the same item is added twice in the set, the set will not add it again. However, when adding an item, using this special operator, it also checks if it is 'better' than another item already in the set, and if yes it replaces it with the new item rather than letting both.
For a more concrete example:
$S_1 = \{apple, orange, pear\}$
$S_2 = \{betterApple, orange, banana\}$
$S = S_1 \cup_\succ S_2 = \{betterApple, orange, pear, banana\} $
So in this case $\cup_\succ$ checked some relationship, lets say $\succ$ where $betterApple \succ apple$, and if such a relationship existed it dropped $apple$ rather than allowing both in the set, keeping the stronger one in the set.