This argument about whether money buys happiness is really silly and has way more nuance.
No wealthy person has ever thought "if only I could to live paycheck to paycheck and take the bus to work at a factory, I'd be happy."
Having wealth provides security and removes almost ALL small problems/stress from your life. You no longer have to worry about health, bills, self-care, emergency expenses, etc. While there is an increased burden when you have that kind of money (for instance, finding the best healthcare) it's relatively moot. When you're broke, you have tons of little problems that constantly get in the way.
That said, chasing money obviously will not lead to happiness, in the same way as chasing a career/corporate ladder, as most of us know. But take a broke person and give them $5m (assuming they're emotionally stable and wise enough to use the money properly) and the odds they won't be happier is almost zero. It won't fix any of your deeper problems, and in fact these deeper issues may only be amplified (for instance, drug addictions).
Personally I always prioritize health over money, after all health is wealth. I won't even work a job if it starts before 9am or requires weekends. I literally just walked away from a job that pays $31/hr with 6% 401k matching, in spite of being technically "broke" (debts from college etc) because it was too stressful, and I've done that before and will probably do it again.
There are two ways to live your life - either work really hard "grind", save early, and retire early, OR do a more slow burn and accept you may have to work later into your life (but maybe not). The benefit of the latter route is you can find ways of making money along the way that is actually somewhat enjoyable or satisfying, while developing skills, connections, creativity to make money on your own. The issue with the former route is the increased stress and the fact that you'll be wasting the best years of your life (30-50) working, only to retire with fewer hobbies, skills, passions, etc and you're left wondering "what now?" Of course it's not this black or white, but generally this is the two main paths most people take.