This line of reasoning makes me sad. It highlights so many problems in a company that a developer is having to deal with;
- Seeing 'management' and 'devs' as opposing teams shows a lack of communication and a lack of understanding from everyone involved.
- A company where managers aren't willing to listen to developers is never going to put out a great product. Developers have expertise and know what they're doing.
- A company where developers think they know best is never going to put out a great product either. Managers also have expertise and know what they're doing.
- If the "managers" dictating that features are added are "higher ups" rather than product managers then the company is never going to put out a great product because the people who talk to the customers and look at usage metrics should be driving the product roadmap. Customer needs should be driving what gets added.
- Developers who aren't putting up a fight to write good, fast code because they're not being listened to stop caring about what they're building, and that means there's very likely to be other problems like significant bugs, tech debt, etc. That just grinds you down and stresses you out.
All in all, if your opinion is "the product I build sucks because managers make it suck" you probably need to find a new job. Not every company is like that. Find a good one.