The only solution that's just is one in which Israel no longer has a front along Gaza. Remove all the guilty (the 0.1% Christian arabs might be able to stay). The rest all voted for Hamas or other flavors of jihadis. Relocate them all, outside of range of Israel. Collect and post biomarkers on all evicted alive, so they can't sneak back into Israel and so any other country can try to keep them out.
There is unfortunately, currently, according all their co-religionists, only one place willing to accept them. So until someplace additional agrees to accept any, they all get sent to Allah's paradise the Koran stated way. Those headed there and their supporters should all be nearly as happy about that as those of us still here.