"I would walk away technically right and completely alone."

Seen many great engineers walk that road right into burnout and then exiting tech all together being fed up.

It's a sad and anti social state that drives people to depression and more sad is the fact that all you really can do is just take it and accept at work things just aren't always logical and correct.

It's more and more, unlikely to lessen as more people enter tech with shallower required upfront knowledge due to more advanced tooling being available to them (more often then not, built by that 'grumpy guy' who quit.)

Try to accept it and have hobby projects you can scratch your real engineering itch with, would be my advice.