There is no justifying what Hamas did and trying to understand what Gazans encounter still does not justify what Hamas did.
We can see from the headlines that other Arab nations support the Hamas actions -- cold blooded murder and rape. Israel has no local friends.
The escalation laid bare the limitations of diplomatic deals between Israel and Arab governments as long as the underlying conflict continues. “We told you so,” a Saudi scholar said.
www.nytimes.com
The bottom line is that the Palestinians and the rest of the Arab world has wanted Israel destroyed since 1948. Faced with a hostile population that wants Israel destroyed, Israeli policy has been to contain the Palestinians because when they were allowed to enter Israel proper, they strap on vest bombs and cause other types of terrorism. I don't like this but I don't see an alternative.
I also don't see the Arab nations being productive. The Arabs control 98% of the Middle East lands but seem unwilling to absorb the Palestinians into their territories.