so much for good rival huh
The only possible way a scarf magnezone outspeeds a non scarf gengar is if the magnezone (30 speed ivs) is timid with a minimum of 232 speed evs, which will bring the total speed up to 351 speed, which as we all know, a max speed gengar caps at 350, and magnezone is henceforth faster. There is 1 way for a modest magnezone to outspeed gengar, and that is with quick claw rng