I'm not a lawyer and there are all forms of prison. Consider Down Under wife-beating assholes; aren't they forming a prison of sorts for their wives? The women can leave them, preferably after cutting off a souvenir, but they don't. Why? Same goes for the Palestinians in Gaza. It's been over 70 years and now they are a suicide cult. If they weren't into it, why not pick up sticks and run?
Consider that not all MAGAts are violent Trumpers. Some just materially support the violent ones or simply cheer them on without the material or physical support. Do they share any blame for the results?
Agreed the Israelis don't let Palestinians in without clearance. Same for the Egyptians. That doesn't stop them leaving on rafts, much less Arab nations sending them boats for evacuation.
That said, I disagree that Palestinians are anymore restricted to Gaza any more than poor people in any other ghetto. They simply have limited access to go elsewhere. Do other Arab nations want them? Other Euro nations? Like the abused wife, why don't they leave. They can do so anywhere along 25 miles of beach.