It narrowly beat Switch, but Nintendo generated the most revenue from hardware sales