WiiU had many good games at launch and through the first couple years. Problem was its pitch. No one knew what it really was until it was too late. Additionally, it was marketed as a purely kid/fun console which worked for Wii due to Wii Sports. WiiU had no Wii Sports. Nothing to overcome its misunderstood first impression, price, power, etc.
While I argue WiiU had good games, it had no Wii Sports, ZeldaBOTW, SMBO, Halo, etc. WiiU never really got that one game early that made everyone say, "holy shit you have to play this".
I would agree that yes, hardware and initial marketing (first impressions are a bitch ~MS) are very important. However, all that can be overcome with at least one or a couple signature games. Content sells consoles.
Wii came out with most people like wtf and yay kiddie. However, Wii Sports very quickly changed that impression. Then that was followed up with many other fun and great content.
PS1 and 2 had that similar touch. They nailed the right first impression and then secured the big 3rd party games, most of which as exclusives, as well as some solid first part that was unmatched at the time. PS4 had the help in that MS failed the first impression, horribly. So that when people compared the very much identical game library, the price and first impressions won out in PS4 favor in a big way.
Switch is once again hitting the right first impressions and of course the perfect signature content. BOTW, MK8D, Splatoon2, SMBO. I'd argue greatly that had BOTW not been a launch title, Switch would have 50% of its current sales or less. The concept was intriguing, showing Zelda and Skyrim in the premier video was very smart, but... the price was shocking, the power level was disappointing, the battery life was hurtful, and the online plans are cringe-worthy. Literally ALL of this negativity was short-lived and pushed aside due to BOTW.
At the core, you are wrong. Content will overcome almost any negative the hardware or marketing screwed up.