Really, it's a case of six of one and half a dozen of the other with this one. Problem is, you have two historically oppressed people living next door to each other that hate one another.
Hamas kicked off this latest cycle of violence to stop Israel and Saudi Arabia making a diplomatic deal at recognition etc. which Iran clearly didn't want. Iranians aren't Arabs, they're Persians and Shia, who have nothing but contempt for the Sunnis... hate each other almost (if not more) than they hate the infidel. Hamas etc. are clearly being used and at great cost to themselves, and few have come to their aid in the Muslim world. Actions have consequences, I'm afraid... what did you think Israel would do? Theocracy is a terrible form of national government.
Israel, on the other hand, acts beligerently and often disproportionately in its defense, and its government always has to appease the ultra-orthodox parties to stay in power and is clearly paranoid (with good reason). Sadly, unless Israel presents a very tough MO, then it will be overwhelmed by it's neighbours and they will be exterminated with extreme prejudice, so has the right to defend itself like all other countries.
There's also one other problem you have in the Middle East, and that is that all sides want the last word, hence once it starts, then it's a very difficult cycle to break unless it's some very complicated face-saving deal for both sides... remember when Clnton almost got the deal between Ehud Barrak and Yasser Arafat all that time ago, these two leaders couldn't even walk through the door first at the White House, as both thought it was a sign of weakness, and had to jointly walk through together... ridiculous! Palestine had its chance at the two state solution and Arafat ultimately walked away, Israel was ready to let it happen.
Not an easy problem to sort out, as whenever religion and historic animosity are involved... intransigence and wrath emerges, instead of tolerance and mutual understanding.