In that situation, it's really a lose-lose for the developer. If they go over their manager's head, they've just made a very unfortunate enemy. And as the manager has more rapport and access to the executive, it's likely going to wind up fruitless as the manager finagles doubt into your evidence (by leaning on that existing relationship and handwaving misunderstandings and referencing non-existent verbal conversations into the points of contention that you raised).
And if they don't go over the manager's head, they now have an internal reputation for incompetence that'll negatively impact the rest of their time at that employer. So they're screwed either way.
At that point it's better to just leave rather than make waves. If you make waves they can come back to drown you later on during your career or job search. If you leave with little ado it stays more compartmentalized to that toxic environment.