They don’t both have a right to kill each other! Both “defense” and “resistance” (w/r/t the goal of self determination) have precise bounds; not all forms of warfare or violence are considered justifiable under either. Much of what Israel has done in the current conflict goes well beyond a charitable read of its right to defense, but this doesn’t imply that all defense adaptations are illegitimate.