Then Israel loses this war. I doubt there are any states in the region who would take them, referring to the 4-6 batallions still surviving. Maybe Iran or Afghanistan, but you can't sneak them there easily. Egypt has heavily armed their border, and it's not in anticipation of attacking Israel, they don't want more terrorists in the Sinai. Civilian refugees, that would take western nations willing to take them, and yes, at least a quarter of the civilians would be Hamas combatants.
Hate to say it , but Biden will probably bring them to the US