His actions helping Hulk Hogan against Gawker were also thoroughly deserved.
I'm not sure even this is what destroys Denethor's mind though so much as it is the thought of the ring. He sees it as his by right of need. He sacrifices both his sons in his madness to have it, for the madness of power. His view of the world is so bleak that saving it in a way that destroys it seems "right" to him
It's not a particularly flattering portrayal- the military success is shown as belonging to Boromir more than Denethor- but at least it shows him sane.
In any sane place, his hate of democracy and freedom would make him a pariah. Instead, he is the current US Vice President's mentor and most trusted advisor.
You just described a good dozen or so VC/Tech Bros