Irelevant. Two evil don't make good. Israel can attack hamas. But they does not right to mass murder civilians. Israel does not have right to commit warcrimes or genocide.
And from my perspective they have moral obligation to compensate any damage what they do to civilians. same for hamas who caused damage to israels civilians. But both are immoral teroror organizations, so i do not expect from them to meet my moral stamdards.