If you select target liberally enough, classify combatants on liberal enough criteria and use munition liberal enough, as shown by IDF reports, numbers and whistelblower accounts, the colleteral damage becomes the target.
And hell, you are really surprised after everything Israel did in Gaza so far, that support for Hamas rises? Really? I suggest to whatch the first season of Andor for an in-depth explanation of why a hard crackdown is usually only hardening resistence.