Israel has an army, but it’s not trying to occupy and rule Gaza and it has left it a while ago and offered it to Egypt. If Gaza had a state and as a consequence, an army, they would try to occupy and rule Israel.And if Israel refuses to recognize Palestine you will just have a continual series of conflicts interrupted by ceasefires.
It is a conflict for statehood at its core, so both are responsible.
So they are not the same.