This is absolutely ridiculous.
If, in that scenario, police started killing innocent members of the community, very few people would consider that an acceptable approach.
Palestinian civilians are largely unarmed, displaced, struggling to survive with physical and psychological injuries, malnutrition, etc. They cannot 'force' Hamas to do anything.
You are conflating innocent civilians with terrorists and their supporters. Please stop.