Mega Charizard X is a dragon attacker.
Mega Charizard Y is definitely the superior fire type, but Mega Charizard X gets STAB from dragon moves, as well as giving teammates in raids a boost to dragon moves. This makes it an effective Pokémon against dragon-typed raids. The set it uses is Dragon Breath (community day move) and Dragon Claw.
Source: this and experience.