Software development indeed has lower stakes than other professions (legal, medical). No one is going to die or be put in an iron cage for life as a result of our work -- well, at least not directly. But the bad consequences of their decisions leave with their clients. We are often tormented by our mistakes for years on end.
If you work in software long enough you also start to perceive a cyclical pattern in software "best practices" which leads to burnout. The hard problems you cut your teeth on as a journeyman become yesteryear's folly, and vice versa. If there are such a thing as fads in medicine or law, they certainly move at a slower pace than software.
It's also possible the developer makes more decisions, albeit at lower stakes, than doctors and lawyers. When you write a piece of code, you probably make dozens of tiny decisions per hour. Think about the last time you saw a doctor. Did you notice him/her pause at any point to think something over or make a decision?
So which is more prone to decision fatigue: a worker who makes a few decisions per day, based on a stable body of literature, that may lead to someone having a bad time somewhere far away in the world? Or a person who makes 100 decisions per day, based on fads, hunches, politics, and blog posts, that may increase their own workload by a factor of 10 in 6 months?
From that perspective, software development feels like a low-stakes game.
Obviously there are many jobs with less decision fatigue, but I don’t think software development is uniquely bad compared to other highly paid professions like legal or medical.
All things considered, software engineering is one of the cushier high-paying careers out there. We definitely have it good.
It depends, of course. Both have hard days where you are hyper focused and making critical decisions, and easy days where the work is fairly routine. I find tax prep to be more decision exhausting, perhaps because the tax code and IRS are involved, perhaps because the decisions need to be explained to the client.