Find unique elements based on a given key
Python 2, 34 bytes



lambda a,b:dict(zip(b,a)).values()


Try it online!

Takes input as list of values and list of keys.
Generate dictionary, swapping keys and values, which leaves only unique y values. Return all corresponding x values