Huh, I always assumed the switch ran on some flavour of custom android, I suppose for not other reason than it seems every digital device in the last 10 years has done so.
https://en.wikipedia.org/wiki/Nintendo_Switch_system_softwar...
https://en.wikipedia.org/wiki/Nintendo_Switch_system_softwar...
Given that the Tegra X1 chip it runs was already a couple of years old when Switch released, they might have had to perform some magic to get performance what it is even with a cut-down Android; even under their custom OS, their flagship game, TLoZ: Breath of The Wild, doesn't run smoothly.