By that logic you also can't pretend Israel had no reason to attack Iran, given that Hamas is Iran's proxy and Hamas attacked Israel.
Or maybe we shouldn't go back to pre-WWI logic and think that all conflicts are exactly the same and every conflict is automatically justified by flimsy reasoning. That kind of logic didn't work out so well in the past, see WWI.