Israel is already doing that (for valid reasons IMO) and it hasn’t lost support; if anything, Israel’s position with other Arab countries has never been better. They too would like to see Hamas gone.
So the UN Security Council vote for resolutions against Israel with only 1 dissenting vote (USA) is not losing international support? Or the cavalcade of countries around the world coming out in support of ending the occupation at the ICJ with only 3 countries in support of Israel versus the nearly 60 countries against? Not sure where you get your news, but you may want to consider another source. Would love to hear your valid reasons... but please before giving them to me, how about reading about the Zionism movement (est 1897) the balfour declaration (1917) the bombing of the King David Hotel in Jerusalem (an ac of terrorism that killed 91 people - mostly british army officers) and the Nakba (1948) the Deir Yassin Masacre - and the many others... and maybe we can have an intelligent discourse.