Exclusive OR function called 'preferredName'