So, we're currently at about 283 million iPads sold since the Switch launch, missing 2023 - so maybe more like 310-320 million, for all uses cases which go far beyond gaming. 130 million Nintendo Switches. Pretty reasonable to say they are pretty even.
Except, of course, they aren't even in the high-quality, paid games market where the revenue on iOS is a joke. How many games does iOS have that are paid, don't have IAPs, timers, or Loot Boxes? How many support local multiplayer on the same device? Switch has got hundreds, if not thousands; iOS has... name five.