I wont say its not entirely "convenient" to have human shields
Then you shouldn't be going off at the people destroying those shields for destroying them.
But dont kid yourself that what youre proposing is milotarily logical.
That depends on what military mindset you want to follow.
Do you want to follow one where civilians are fair game? If so, go bunk with them and set up your base with them. But then don't complain when they get killed.
Or do you want to follow one where civilians are protected and not valid targets? Then you need to segregate your military away from them, even if it means your defeat.
If you want to detach the emotion from it and no longer care about protecting civilians (the kind of mindset that allows not segregating them), then a quite "logical" strategy is to destroy the civilian population that is supporting the military so the military falls. We see all the time in RTS games, where you destroy the villagers or whatever equivalent to stop the enemy being able to get resources to train more military. While not a perfect analogy it does still hold.
Likewise, the logical strategy defied by virtually all modern powers is to kill the medics, and kill the wounded, so they can't recover and come back to fight again.
Likewise, the logical strategy when you have people surrendering is often to kill them so you don't have to support them and don't risk them trying to fight back. The only reason to keep them prisoner is if you want people to surrender rather than fight to their last breath, and in that case, while keeping them alive, you can still do very little.
And if you can take out a target, without harming your own people, then do it, regardless of the collateral.
And if you are worried about the remaining people starting an uprising then destroy them.
Modern warfare has drastically removed itself from that emotionless logic.
It values civilian lives, to avoid taking out unnecessary civilian casualties.
It values even the military being able to survive, so wounded and medics and military hospitals are protected, and POWs are protected and cared for.
But those protections come with responsibilities.
If Hamas is not willing to obey those responsibilities, then every human shield they use is a valid military target while it is being used as a human shield.