During a surprise attack.
The conflict that was started by Oct 7, according to Wikipedia, has seen 81,526+ dead on the Palestinian and associated side*, vs. 2,053 on the Israeli side.
That said, from the point of view of your edit: the ratio is irrelevant when someone's convinced they're facing an existential threat. Given Oct 7 was proportionally worse for Israel than 9/11 was for the USA, and the USA didn't seem to stop justifying everything through that lens for about a decade afterwards… it's going to suck for everyone that Israel thinks is so much as looking at them funny. (That isn't a joke even if it sounds like one: the people who see Israel as their home and their safe-space are collectively likely to be hyper-vigilant, to their own cost, in this kind of way, for a long time).
* With the footnote that '"Indirect" deaths may be multiple times higher' and 'In addition to direct deaths, armed conflicts result in indirect deaths "attributable to the conflict". Mortality due to indirect deaths could be due to a variety of causes, such as infectious diseases.[27] Indirect deaths range from three to fifteen times the number of direct deaths in recent conflicts.[28] In Gaza, estimated 51,000 natural deaths, natural death rate has gone up from 3.5/1000 to 22/1000 (late June 2024)[29]'