Egypt ended up with Gaza after the 1948 Arab Israeli war. They controlled Gaza until the 6 day war when they lost it and the Sinai Peninsula. Israel offered to give Gaza back to Egypt as part of the Camp David accords but Egypt didn't want it. Israel abandoned Gaza to Hamas in 2007. But after 10/7 they've decided that was a mistake.
So yeah you can demand all you want that Israeli accept being slaughtered by Islamic terrorists but isn't going to happen. Reality is calls to push Israel into a corner is going to result in stuff you claim not to want.