Israel has repeatedly blocked the 2 state solution. Even Rabin’s stance was “the Palestinians should have something but something less than full statehood”
Israel encouraged Hamas by allowing Qatari support in to Gaza with the intent of keeping Gaza and the West Bank
Finally the Hamas charter was amended and no longer calls for the destruction of Israel.
In any case Israel (with the support of the US) has all the power in this conflict and they are the ones actually killing tens of thousands of innocents no matter what Hamas’ official position is.