Software engineers are classified by the CDC wrt to suicide incidence higher than a lot of the jobs you're mentioning there (8th place out of 22). I guess being spoiled comes with the price of offing yourself more often than doctors, lawyers or teachers.
For example: Work hard, have a bad relationship at home or at work can easily lead to burn-out.
Furthermore, software engineering seem to have some unique combined traits which sets it apart: 1. Creative proces which is hard to manage and easily leads to misunderstandings and conflict with customer or employer. 2. Screen-working enables stretching concentration well beyond human limits. 3. Modern western society tends to personally identify oneself with work too much (which is an easy trigger for emotional disturbance) 4. Programming is fun! Devs are being treated so well! So why not endure those problems a bit longer ...
In fact, being spoiled can lead to dissatisfaction. It's part of the problem I imagine.
Somebody doing something really hard for a tangible benefit to people they know, have really healthy life satisfaction. Like the plow truck driver in winter, folks like that. For the obvious reasons.
We're all social animals. Suicide has to do with that. Not how easy your job is!
Only in one country.
And comparing software development only with stressful jobs.
And if you still think that burnout is not a bigger issue in the software world, go around and look at how many 40+ or 50+ years old work in software.
Software developers at many, many companies are absolutely spoiled. I know there have to be negative stories, but on the whole, pay, benefits, perks, and even hours are better than a great many industries. Even game shop crunch hours seem about on par for doctors in residency, some (most?) finance shops, and I'm sure other less notable roles like my friend who works in water distribution who puts in 90 hour weeks regularly and just got off a 39 hour shift.