The PLO, ANC, IRA, Algerian resistance, and other liberation movements committed atrocities against civilians and were labeled terrorist organizations. But they were eventually invited into the political process. The same must happen with Hamas.
https://mondoweiss.net/2024/07/there-is-no-path-to-peace-that-does-not-involve-hamas/