Of course he wasn't in the team of the tournament, he was eliminated in the last 16
The last straw is strong.
Officially yes, but there is no pattern, let me show you how instead of cherry picking:
Let us remove the goal and games against the following teams: Luxembourg, Lithuania, Andorra, Armenia, Latvia, Estonia, Faroe islands, North Ireland, Azerbaijan, Cyprus, Kazakhstan, Liechtenstein, New Zealand, North Korea, Qatar, Albania, Canada, Cape Verde, China, Georgia, Mozambique, Curaçao, Guatemala, Haiti, Honduras, Hong Kong, Jamaica, Nicaragua, UAE, Qatar, Trinidad & Tobago
It stands like this:
Ronaldo: 66 goals in 141 games (51 goals in 103 official games)
Messi: 78 goals in 159 games (54 goals in 119 official games)
So they're sort of even in goals/game, with Messi edging it in total but Ronaldo having done better in official games.
Now let us remove the following teams: Bolivia, Ecuador, Paraguay, Venezuela, Panama, Algeria, Australia, Bosnia-Herzegovina, Iran, Peru, Saudi Arabia, Slovenia, United States, Angola, Costa Rica, Greece, Hungary, Iceland, Poland, Ireland, Romania, Finland, Israel, Morocco, Slovakia, Ukraine, Wales, Austria, Bulgaria, North Macedonia, Norway, Turkey, South Africa
Ronaldo: 42 goals in 90 games (33 goals in 67 official games)
Messi: 41 goals in 86 games (23 goals in 62 official games)
The pattern is the same, Messi slightly edging it but not in competitive games.
Let us now remove: Mexico, Colombia, Nigeria, Switzerland, Serbia-Montenegro, Japan, Russia, South Korea, Sweden, Denmark, Cameroon, Czech Republic, Egypt, Ghana, Serbia, Ivory Coast
Ronaldo: 15 goals in 47 games (11 goals in 30 games)
Messi: 27 goals in 57 games (14 goals in 40 games)
Messi has scored signficantly more goals but in friendlies, they're on par in competitive games with a small edge towards Ronaldo.
Now let's do a different exercise: using only Copa/Euro + WC games
Ronaldo
Euro: 14 goals in 25 games (0.56 goals per game)
WC: 8 goals in 22 games (0.36 goals per game)
Total: 22 goals in 47 games (0.47 goals per game)
Messi
Copa: 13 goals in 34 games (0.38 goals per game)
WC: 13 goals in 26 games (0.5 goals per game)
Total: 26 goals in 60 games (0.43 goals per game)
So as can be concluded from above, imho, Ronaldo has been stat padding against weak teams just like Messi (and everyone else, it's not like they have had exceptionally unique weak opponents) and they are similar at all ranks of teams (at least if you consider official games).
In the big competitions Ronaldo has been doing fine actually, he scores more in these competitions than Messi actually, he is competent here and the stat padding theory (the new spin on the old and once discredited "he only scores against weak teams" criticism that happened earlier in his career) crumbles.
This is my subjective analysis of course and feel free to criticize it. If you're being honest you have to contextualise and analyse the whole data not just cherry picking points to prove your arguments. Again, I am prone to being subjective of course but I am transparent about it and the data above is of course there for everyone to see, I am trying (again, subjectvely) to base the argument on facts.