Hamas targets were military targets. More than 33% killed were active IDF soldiers.
The music festival next to a military base was not even supposed to be there. And there were many armed IDF soldiers at the festival (human shields anyone?)
If Hamas wanted civilian casualties they would have pushed into Israeli cities instead of raiding the heavily guarded military bases around the Gaza envelope.
For a more detailed explanation, an Israeli person made this great video https://youtu.be/Pt_1k7nSv1M
And so every third party voter is vindicated.
The US had a civilian casualty rate of 12/13 in Iraq.
The IDF with 70% women and children killed would have a higher civilian casualty rate than Hamas even if literally every single man they killed was an active duty Hamas fighter.