Micro-Wars and Macro-Wars
The big long-term problem Israel has is that its assiduous colonization of the West Bank has made a two-state solution almost impossible, turning it into an Apartheid state. And if you go on practicing Apartheid long enough, that begins to attact boycotts and sanctions. And forestalling a Palestinian state means that likely the Palestinians will all end up Israeli citizens.
I was on the radio recently with John Bolton, former US ambassador to the UN, and he expressed the hope that Egypt would take back Gaza and Jordan what is left of the West Bank. You may as well dream of pink unicorns on Venus. It isn't going to happen. The Palestinians are Israel's problem. War on them, circumscribe them, colonize them all you like. They aren't going anywhere, and you can't keep them stateless and virtually enslaved forever, occasionally exterminating some of them as though they were vermin when they make too much trouble. That, sooner or later, will lead to boycotts by rising economic powers and by Europe that could be extremely damaging to Israel's long-term prospects as a state.
It may still be 10 or 20 years in the future. But because of Israel's economic and demographic vulnerabilities, for it to lose the war of global public opinion may ultimately be more consequential than either macro-war or micro-war...