Can Gaza declare independence from Hamas, and if it could, would it? It's like trying to argue that ok, Luftwaffe, Wehrmacht, SS, Kriegsmarine etc may have fought the Allies, but the Allies should not be bombing Germany indiscriminately over it.
Which they weren't, and neither is Israel. Still...