You can argue whether or not Palestinians deserve the response, but what makes you think Hamas does not represent Palestinians? A recent poll by the Arab World for Research and Development shows that 75% of Palestinians support both the October 7th attacks and Hamas's vision of a single, Palestinian-only state. And Hamas's vision to achieve this state is actual, literal genocide.