(Posts occured since the point at which I was replying... Consider this point perhaps overtaken...)
I think I've already said, elsewhere, that I think Hamas's plan had gone "horribly right". A pyrrhic victory, of an operation, except that they might yet be utterly happy with the way the world is divided (tacit supoort for Israel is comparatively down, in the West, even if it's still there are various levels; everyone who was already pro-Palestine is likely even more anti-Israel, and... despite or even with the retaliatory losses, it justifies their cause at least as much as before, and far better than if their incursions had failed).
Much of the same may be true for Israel, albeit differently. Knowing/suspecting something was going to happen, those in charge may indeed have been willing to see the operation go ahead. Either to be smashed, or to justify (at least to those most in line with their thinking) the (counter-)incursion that was politically not quite in their grasp of possibilities beforehand. Yes, hostages were taken some (many?) were lost, as well as the other deaths... loss of some soldiers who were in the way of the steamroller that they might (or might not) have had an inkling of... but it adds to the message of "Palestinians can't be trusted!" and "There can be no peace with those people!". Pyrrhic defeat, as it were. (and then they go on the offensive and it gets messy).
But, to the true believer of either extremist end of the confrontational philosophy, "it's all good", You can't make an omlette (...etc), right?
It's everyone else that gets caught up in it. Or finds themselves at the other end of a complately different fuse that a spark from this conflagaration drifts off and lights the end of, seemingly unrelated. (The victims of the Parisian attack, we just had, although whether the same person would have popped up later or not (having history with the idea of doing something like this) at the next opportune time (if it had not been one just now) is a question that's hard to answer. Though we can be sure that the "Strong Pillar" training was going to lead to something, and may yet have those awaiting their turn to have their own go, in their own way.)