By the same standard, my dear:
In a much, much, much MORE recent election, the Israeli people voted for what ended up being a coalition that included such far-right, racial supremacist extremists as Ben-Gvir and Smotach. And Elyahu - you know, that wonderfully moderate individual who suggested dropping nukes on Gaza was a potential option, and has only been "suspended" for it, not fired, so far! And the extremist Sukot, who - despite being on the record about his rabidly racist, supremacist, ethnic cleansing fantasies - was most recently made the head of a sub-commitee for "security" within the West Bank.
As for Bibi: we all know he will literally just grasp at any straw to stay in power and defer his small (well, not SO small ...) criminal issue!
Does the presence of these people in the government of the state of Israel justify or even just excuse 7 October?
I, for one, do not think it does!
But, if I am right and it does not: how come you are not applying the same standard to Palestinian civilians?