There is a simple way to resolve this, done solely among the top of the Israeli leaders. It would never be released publicly, but would become quiet policy.
It is a series of “red lines” that when crossed would result in the same response, no matter who was in charge, unless all major political factions agreed to not carry out that response.
By debating and agreeing to these red lines now, when they are under less pressure, will they be able to respond effectively when they are under much greater pressure.
For example:
1) The next time a Muslim nation, as a nation, tries to invade Israel, the city of Mecca will be annihilated with a nuclear weapon, the dirtiest weapon imaginable, so it will be uninhabitable for thousands of years.
(This is a good starting point, for everyone to realize how serious these red lines should be.)
2) Next would be a red line for Gaza Palestinians, and West Bank Palestinians. An agreement that if they do ‘x’, then the Gazans will be expelled to Egypt, as a people; and the West Bankers will be expelled to Jordan. Thus there are two red lines here.
3) Another red line would be for the razing of mosques in Jerusalem and Israel. With emphasis on the al-Asqa mosque.
I would call it the Hezekiah Option (2 Chron. 32:5) where one is prepared and do everything one possibly can, then trust on God almighty to use one's puny efforts to bring about an amazing victory that will glorify His name!