It’s worth clarifying that the Palestinian civilians are not Hamas though. It’s also misleading to say they elected them democratically, as the median Palestinian was a literal infant when the last election happened, and nearly half weren’t even born.