By that logic the US independence war (1775-1783) was not a ”war” either because the colonies were part of England. Neither were the war of 1861-1865 between the northern and southern states. Can’t be at war with yourself?
With Palestine vs Israel I would tend to call it a war since Palestine's own country was taken and it is occupied by different artifically created country, so I would say it is two countries at war.