Switch succeeded a handheld platform that struggled at first but was profitable in the long run. It also succeeded a big failure of a home console.
PS4 succeeded a home console that nearly destroyed the brand despite massive course corrections. PS3 may have sold a lot of consoles, but lost Sony billions of dollars in the process.
One of the similarities though that hasn't been mentioned is digital distribution. PS4 has the largest library of games to date for a PlayStation platform, and Switch has the most games for a Nintendo platform. This is largely due to the massive number of digital games from shovelware to indie gems.
Lifetime Sales Predictions
Switch: 161 million (was 73 million, then 96 million, then 113 million, then 125 million, then 144 million, then 151 million, then 156 million)
PS5: 115 million (was 105 million) Xbox Series S/X: 48 million (was 60 million, then 67 million, then 57 million)
PS4: 120 mil (was 100 then 130 million, then 122 million) Xbox One: 51 mil (was 50 then 55 mil)
3DS: 75.5 mil (was 73, then 77 million)
"Let go your earthly tether, enter the void, empty and become wind." - Guru Laghima