This myth of "spoiled developers" definitely feeds into the problem. People feel like they cannot complain about their work conditions because they have nice toys and benefits at the work place.
As a long time developer, I think we are pretty good at complaining about our work conditions, and are spoiled in many ways. We also have some very valid complaints about the bullshit we have to deal with, interfering micromanagers making us less productive and less happy, etc. All these things can be true at once. You don’t need to dismiss any of them as myths.