I think the big problem with this approach is that actions taken now, which lead to deaths, lead to the friends & family of said people becoming more radicalised and thus to more terror attacks/wars in the future.
I read recently in the FT that 60% of current Hamas fighters have lost family to previous conflicts, suggesting that this isn't going to end.
And more generally, it's basically impossible for conventional armies to defeat guerilla fighters who have the support of the population (c.f. Irish/English conflicts, Iraq, Afghanisation (multiple times) etc).
Like, fundamentally the only way this can end is through either extermination or negotiation. Given the relative power imbalances, it'll be extermination of the Palestinians, which would be terrible (and incredibly depressing given that a lot of Israeli citizens are descended from survivors of the Holocausts and the various pogroms in European history).