The answer for both sides is that both sides have historical claim to the land, and there is no better neighborhood to live in for either of the sides anyway.
But Gazans can’t leave (the borders have been closed for years now), while Israelis can emigrate whenever they like. So on an individual basis, every Israeli has made a choice to accept living in the bad neighborhood, whereas the Gazans have no choice but to make the best of the bad situation.
As for the Jews, there is no place safer than this "bad neighborhood".
This is an argument that Hamas is bad not why buildings need to be destroyed
Many of the dead children pinned on Israel are the result of the bobby trapped buildings. This actually makes sense in Muslim media, where culturally those killed by either side are considered martyrs and afforded the gifts of heaven. But it makes no sense in Western media where human life is supposedly valued.