>>31839045Koko is the only one of those two that beats it out. Gengar was already suffering because of greninja, who fucks it in the ass last gen, but now there's just more threats to it.
Real nail in the coffin, though, is lele, who is tanky enough to survive sludge bomb if it is slow Psynuke build, or just straight up faster than gengar because of scarf and nukes it with psychic. Like, literally:
0 SpA Tapu Lele Psychic vs. 252 HP / 252 SpD Gengar: 344-408 (106.1 - 125.9%) -- guaranteed OHKO
252+ SpA Gengar Sludge Bomb vs. 252 HP / 0 SpD Tapu Lele: 288-338 (83.7 - 98.2%) -- guaranteed 2HKO
You'd need max everything, and min investment loses, because poison just gets fucked by psychic. Gengar could have a role as a scarf user, though, what with modest Scarf outspeeding timid lele by 2 points and being able to securely OHKO lele at up to 28 HP evs (it becomes a slight dice roll as lele invests more HP, but it still needs to beat naive pheromosa and thus only has about 84 extra EVs there, plus it can't risk being slower than other leles or else it loses the trade war. It might have a chance to get more from SpA, but then that is important if it affects any damage benchmarks it might have, and really the HP is just for obtuse benchmarks that are otherwise irrelevant. So yeah, Scarfgar could be an option to try if you really want to use him, especially since he'll also nuke phero and koko.