In that case they should be able to ID a target with Hamas personnel, then launch a precision strike to hit that single target.
This avoiding the current level of destruction.
Of course technology is there to those who CHOOSE to use OR NOT use it perhaps.