The main advantage Switch has is that the DS, like the Wii, fell sharply towards the end of its life, so the main factor in this race will be stamina.
A 2024 replacement for Switch would pretty much guarantee its victory, unless 2023 is a barren desert in terms of software. Hopefully Nintendo isn't stubborn when it comes to price cuts either.