Think back to WW II, the US bombed Iwo Jima into the stone age before the landings, didn’t phase the Japanese at all, they were all underground.
The Germans reduced Stalingrad to rubble, didn’t stop the Russians.
Both forces were underground, Hamas is underground and pops up, fires a few rockers or shoots a few mortar rounds and then goes back underground.
They have to be rooted out one by one, that takes time and is very dangerous.
I would put plows on the front of all tanks and simply bury them alive.