People may get wrong impression, because RSM Naruto did slightly better against Kaguya or Madara and survived his fight with Sasuke. Problem is Sasuke was limited to 1 Rinnegan jutsu through the whole Madara and Kaguya fight. Meanwhile Naruto was utilizing all his new powers and buffs without a problem. Sasuke's new powers were restricted by plot as he simply didn't use them at all or "learned" them too late(looking at preta path which came at the end of the fight)
Unrestricted Rinnegan > anything else.