I don't know if Z-Moves have a priority boost or Psychic Terrain gives a speed buff, but at the final turn of this replay, it was just a 1-on-1 showdown between these 2 Pokemon, which sets and the replay I've left here
http://replay.pokemonshowdown.com/gen7pokebankou-495449376
A Shit Meme...