Both. A top-quality striker like Ronaldo will ensure a high xG because his movement makes other players find him very easily. In contrast, someone like Martial makes life harder for the team, because he is static so finding him in a good position to shoot becomes very hard.
they can't both be the bigger factor