I am not saying that Rizwan is better than YK in odis because he averages higher.
YK was a very limited Odi cricketer, he has 7 centuries in 265 matches, doesn’t matter what era it is, those are below average numbers.
Also you are talking as if YK played his career in the 90s, in his era (the 2000 decade) pitches used to be flat and 270 scores became frequent.
If you compare YK to his contemporaries, his name won’t even come up in top 25 odi batsman.
Take a look at YK’s record in World cup
18 innings 349 runs at an avg of 21 with just two fifties
Rizwan has outscored him in one world cup with 395 runs at an avg of 65 and str rate 95 with a century and one half century.
One has to be clueless or a hater if he argues that YK > Rizwan in Odis.
No comparison whatsoever.