I'm not sure that the algebra is correct.
As according to Hamas, one Israeli life is worth over a hundred Gazan lives ( even more) when it comes to release of hostages and prisoners.
And even if a released prisoner immediately uses his freedom to plan the largest pogrom since WW2.
So to split justice ( as Jamaicans would say), the IDF maths are mathing.
As distasteful as those maths may be.
But it is a mathematical construct approved by Hamas.
Hence it embedding itself with Gazans to the point of using them as shields and co conspirators and making sure that fertile women get on with producing more and more for the Gazan to Hamas pipeline.
"Peace" and relative autonomy takes away the need for Hamas and its rules for Gazans.
Each and more Gazan deaths was always the aim for Hamas.
No agitation. No reason for Hamas and Co to exist.
Relative peace gives open minded Palestinians too much time to maybe see themselves outside of the "Palestinian=Victim of Israel" construct.
Something that ALL pro Palestine people would be horrified by as their reason for being would be interrupted by the three dimensionalism that they accuse the Pro Israelis of refusing to afford Palestinians.