1) An air strike at the building, destroying it and killing most of its inhabitants, and leaving a minority of them wounded.
2) A squad of soldiers enters the building and executes most of the inhabitants at close range, and wounds and leaves alive a minority of them.
Most people would call scenario 2) a deliberate massacre that cannot be justified. Many people would, however, call scenario 1) a legitimate military strategy with unfortunate collateral damage that cannot be avoided. Question is, why? The outcome is the same, but for some reason the impersonality of striking from distance (air strikes, missiles, or artillery fire) seems to make it acceptable in many bystanders' eyes.
Nowhere in any civilised state in the world do the authorities just go in and kill everyone in a building to get to a few.
It's beyond insane.
The fiction you've created to rationilise this is that there is a "war", but there is no fucking war. It's an occupying force slaughtering its hostages to punish a relative handful among them.
If there's a war, where is the army that the IDF is fighting? How many losses have the IDF had? Where is the front-line of this war? Where is the footage of this so called "war"?
These answers are obvious. You would’ve been able to answer your questions yourself if you were earnestly looking to do so.