The problem is,Hamas doesn't have a problem about civilians getting bombed on the surface,while they are underground and fighting when opportunity comes. The problem for the IDF is,that they know an urban battle against Hamas and their friends,would be a disaster. This isn't Jenin in the 2000s,this isn't the West Bank of the Second Intifada. The enemy militias have drones now,they have ATGMs,they have night vision goggles,they have dug tunnels under the ground. Israelis now see how they had been stockpiling weapons they got from Iran,Lebanon and other countries for years. And the IDF recruits don't seem eager to die for Netanyahu's war. They want to see Hamas defeated,but they probably don't want to get inside a chaotic Gaza,full of angry Palestinians who will drag them from their tanks and beat them to death.
I think the best exchange for the hostages would be Netanyahu for all the hostages.