Gaza is a cautionary tale for that
Just like with Vietnam, it seems the measure of success is in blood. Since the population of Gaza has been decimated - quite literally 1 in 10 Palestinians are now dead and we’re expecting tens to hundreds of thousands more dead before the end of next year due to famine and disease, nevermind war - while the Israelis report minimal casualties, they believe they are “winning”.
We have seen this in Afghanistan, Iraq, Syria, Vietnam…
The lesson of these wars to the political class is that they win reelections, they generate enormous profits, and they never seem to bother the median voter over the long term.
:-/