One, Hamas isn't doing this. No proof beyond the inevitable effects of fighting in one of the most densly populated areas on this planet.
Two, Israel is doing an incredible good job at putting the pressure on themselves right now.
> One, Hamas isn't doing this
Sinwar himself said it :
Then a courier arrived with a message from Yahya Sinwar, the head of Hamas in Gaza, saying, in effect: Don’t worry, we have the Israelis right where we want them.
Hamas’s fighters, the Al-Qassam Brigades, were doing fine, the upbeat message said. The militants were ready for Israel’s expected assault on Rafah, a city on Gaza’s southern edge. High civilian casualties would add to the worldwide pressure on Israel to stop the war, Sinwar’s message said, according to people informed about the meeting.
Source https://www.wsj.com/world/middle-east/hamas-thinks-it-could-...
Getting international opinion to turn against Israel.
Thats the way Hamas can survive this, getting enough pressure on Israel to make them stop.