We were at a very stressful location and working at another location could be a huge relief because of lower load. I would imagine the work environment would have to go to absolute trash for the dev job to come close.
If you say restaurant, it feel like it's not fast food, and the average differences in wages, hours, stress level and customer appreciation between establishments called restaurants vs fast food places is probably quite significant.
I've been running an excavator recently to do some...yard work...and honestly that line of work seems pretty appealing, and quite lucrative.
If salary was determined based on the emotional and physical toll a job takes, I feel like a fast food worker would make more than I do as a software engineer.
It was pure bliss. Most of my time was spent relaxing in my own car with my own music, or socializing with other employees in the pizza shop. Some (very few) customers were dicks, but who gives a fuck? All I do is deliver it, I was neither expected nor in any way able to help them with anything else. There is no concept of "oh, here's a bunch of work I didn't expect to have to do today." Show up, drive around, ???, profit, leave.
Since then I've accidentally stumbled back into software development and while it certainly has its upsides, I am infinitely more stressed. I miss the pizza gig almost daily.
That kind of job should have risk bonuses. Significant ones. Most people just can't do that and pursue anything else. Getting stuck is a real fear.