I often repeat exactly this sentiment but history should be a lesson. The US was also coming from the '29 crash and all the economic crisis of that era before WW2.
Everyone and their mother already discussed WW2 parallels and history repeating itself at least a few times in their life I'm sure.
I don't even believe the US can rally the same level of government control now as it did back then, the political control that was key to controlling the economy and therefore having a competent industrial/investment focus towards the war effort seems unthinkable now.
At the same time, China already gaslit themselves into thinking they're on a major economic crisis. A scenario where China just does Pelosi 2.0 and concedes Taiwan for the next few decades is definitely possible.
Remember a war requires both sides willingness to fight. The US can certainly get victories by forcing China into increasingly desperate slippery slopes("red lines") they're not actually willing to enforce.