Gaza has border with Egypt not controlled by Israel. In fact, ~150k people left Gaza in 2022, and numbers from 2023 are of similar scale [1]. I wouldn't call it a prison
[1] https://twitter.com/Aizenberg55/status/1665745935589076992
[1] https://twitter.com/Aizenberg55/status/1665745935589076992