Yes, and this is a recent iteration of that problem. During WWII, the faithful within the allied forces were constantly told that god was on their side, or that they were gods agency on earth; But of course the axis forces believed exactly the same thing - gott mitt uns and all that.
And that rallying call has been uttered by both sides in countless wars and skirmishes over the centuries, from roman times on.
Seems to me that god must be doing some kind of reverse pascals wager;Offer your support to everyone, and you can come out the winner.
Not much fun for the faithful though.
And the actual answer has to be to ignore religion and introduce some dispassionate, rational and objective thinking to both sides.
Whilst Hamas defiantly fire off missiles from batteries embedded within the civilian population, in what, viewed from the outside is a pathetic attempt to rally support and show defiance; whilst Israel continues to exercise their superiority in military might, this asymmetric superiority used to disproportionately and excessively punish Hamas and innocent bystanders there can be no mutually acceptable, peaceful and long lasting solution.
It is a bloody neverending war of attrition, rooted in religion and compounded by politics, cynically manipulated by the superpowers to further their political and economic interests.