No you're right the conflict didn't start with Hamas, it started from the word go when Palestine / The Arab League rejected the original division of land and started a war over it, which they subsequently lost.
But the rights and wrongs of the past can't be changed, only the future and that can't happen as long as Hamas, their supporters, and their brand of extremism exists in the region.
Hamas are a terrorist organisation committed to the obliteration of Israel and the elimination of Jews and have repeatedly said they will never entertain peace.
More than that they are the leaders of Gaza. People like to draw a clear line between Palestinians and Hamas, forgetting that Hamas were elected into government by the Palestinian population of Gaza. Yes, Hamas immediately withdrew the right to hold elections once in power (who could have seen that coming? 🙄) but, they still enjoy widespread support of the general Palestinian population.
While Hamas remain, and while their supporters continue to adhere to their ideology, which demands that ever single inch of that region must be under Islamic control, there will not be peace.
Those wedded to that ideology see it as an affront to their God that an infidel, even worse a filthy Jew, rules over part their holy land, and will never stop fighting for its return to their complete control.
Either Palestinians have to show they're willing to change the narrative, or the ideology that drives them has to be defeated. The only other alternative is the eradication of Israel, which no doubt would be the preference for many on here.