The provisional IRA didn’t lay down their arms in exchange for nothing. It was a 2 way street. It involved a lot of good faith negotiations from all sidesOn Ireland. If we're going to somehow use the IRA analogy then it would follow that Hamas lay down its arms against the Jewish occupier just as PIRA laid down its arms against the English occupier.
The Provisionals realized the world had moved on and being linked to other terror groups was no longer acceptable especially to their American backers. They also understood that Catholics would not be a minority in the north in the near future.
For Hamas to do this they would have to rewrite their charter removing all their pathological religious hate for Israel and its people.
The laying down of arms and the acceptance that the state of Israel has a right to exist happened in 1993 when the PLO was the dominant force in Palestine. All Israel had to do was 2 things , stop building settlements and accept Palestinian access to west Jerusalem. They did neither. Hamas gave them an excuse but the PLO could not control Hamas, even though they were a fringe group then.
Israel may well obliterate Gaza but they can’t kill 2 million people.