Also, I'm not seriously advocating for this. It's a fantasy that has no chance whatsoever of happening. But it is probably the only sort of thing that could bring a quick end to this conflict given the current parties in power.
Your original comment said that leaders committed to peace should "be installed". That doesn't sound democratic in the least. And here you say that "it is not authoritarian to take aggressive war off the table". When you're talking about outside forces forcibly taking over these places governments and "installing" new leaders, that's the definition of authoritarianism. Israel's leaders were already democratically elected, and obviously they're not peaceniks, and if Netanyahu suddenly died of a stroke, I think it's naive to think the Israelis would now vote for peaceniks. And I think it's very unlikely that Gazans, given a new vote, would choose peaceful leaders either, though I could be wrong of course.
So, if anything, a more accurate description is that October 7th was a boiling point where Palestine retaliated for decades of oppressive killings.
But the reality is that neither is the right framing. The October 7th attacks on innocent civilians aren't justified or justifiable. The following invasion and widespread murder of innocent civilians aren't justified or justifiable.
A ceasefire and peace deals must be imposed to keep the situation under control. All those who have caused the death of civilians, both in Hamas leadership and Israeli leadership, should face international justice, and new leaders should be installed that are committed to a lasting peace process.