How would a 2 state solution be different than Oct 6?

Gazans gleefully and happily elects Hamas.
Hamas attacks a concert full of teenagers and slaughters everyone.

No. If that is who the Palestinians elect then there will be no solution and no peace as long as Palestinians have a voice in their own government.