I just went looking for some information on the breakdown of the population in Gaza by age group. Since approximately half of the people living in Gaza in October 2023 hadn't even been born before the election in 2006 and only those 36 years of age and older could have voted, it makes no sense to blame the entire population for those election results.
As of 2023, the number of people in Gaza older than 35 was approx. 465,131*.
<link>
Voter turnout for the election was approx. 75%, so about 350,000 people.
<link>
And of that 350,000, only 44% voted for Hamas so we're talking about ~150,000 people.
<link>
Some posters here are in effect blaming over 2 million people, most of whom are children and teenagers, for the votes cast by 150,000 people 18 years ago.
They are also suggesting that all those people who didn't vote or voted for a different party should have somehow overcome Hamas, which even the IDF struggles to do. I suppose they think all those Gazans should have gone to Ollivander's shop in Diagon Alley when they were 12 and bought magic wands so they could wave them around and shout "Expelliarmus!" and disarm the bad guys.
*Includes people born one year too early to have been eligible voters.