As someone who has lost loved ones in Gaza, this is an utterly horrible thing to say.
My friends and colleagues did not "volunteer" to die. Many of them were bravely working in hospitals and camps for displaced people, to try to save lives.
Their families did not "volunteer" to die. Nor did their children volunteer to be injured and scarred for life.
"Ordinary Palestinians" can't do anything to stop this. They can't "hand over Hamas" - they don't even have enough food to save their children from malnutrition, let alone the resources to stage a coup in the middle of a warzone. They can't free hostages themselves for the same reason.
It has already been made clear on multiple occasions by the Israeli government that the return of the hostages would not be sufficient to end the assault on Gaza. That nothing short of "total victory" will suffice.
If anyone started saying that the deaths of innocent Israeli citizens were "voluntary" due to the actions of a government and military over which they have no authority, that person would rightfully be condemned and corrected for saying something so horrendous about the deaths of innocent people, especially when people directly affected by loss would be able to read what was written. The same applies to innocent Palestinians and others risking their lives and dying in Gaza. The same consideration should be given to people with loved ones in Gaza as to people with loved ones in Israel.