The blockade in its current form is because of Hamas, there was a far less restrictive blockade before they were elected. Without Hamas there is no October 7th, which means no war and no airstrikes.
It's possible that they just would have chosen a different terrorist group dedicated to genocide of Jews to back though, as they have historically. It's hard to know what lies on the path not traveled.