To me this is the issue. An elected government attacked its neighbour. Sure they (hamas) used shit soldiers with no plan other than to draw their enemy into a media war and the cost of their citizens and children. But they none the less attacked.
If the tow arms are separate then they should have cooperated with returning hostages.