There is no guarantee of peace even after two state solution. Look at India and Pakistan.
However, problem lies with both side, there are groups in Palestine who believe Israel does not right to exist and visa-versa.
It makes sense, when you see Hamas response.
They were trying their best for ceasefire even before ground operation began.
Also happened same with Kargil war.
Yeah and make a precedent .. so in future just kill Israeli civilians and kidnap them. now release "everyone for everyone". This is what Hamas planned but Ground invasion came out of syllabus.