If both players are two instances of the same object, then you can't compare Player.y with Player.y
You can use IIDs - Player(0).y compare with Player(1).y
Or you can add Player sprite to a family. Then you'll be able to pick 1 instance of Player and 1 instance of Family in the same event and compare them.