Ha ... it's not that simple. It's also contingent on Hamas releasing the hostages, many of whom are babies, children and vulnerable elderly. Yeah sure nice fantasy of beaming up the kiddie hostages.
Hamas, like their past behaviour demonstrates, is dishonorable. Even with a dodgy ceasefire , Hamas will not honor it properly by going back to firing rockets at Israel and do it on the sly. They won't ever agree to a 2-state solution because for them, the region is an all or nothing proposition as per their charter and their backers Iran. Iran/Hamas/Hezbolah long term aim is to obliterate Israel and kill all Jews. It's their belief that the whole area is Islamic Waqf consecrated to Muslims.