It matters very much because the answer to this question depends on the context Charizard is being used. This is especially true for competitive Pokemon, where niche/role of each Pokemon is very granular. The question does not specify whether it is about competitive, let alone mention a game or format.
If you're happy with an answer like "Y is has good SpA and X has good Atk", then sure, none of the above matters. But I expect OP wants something more interesting than what you can read off base stats.