The fact that the 1973 war only occurred in Egyptian and Syrian territory actually had a major impact on how other other countries reacted to it.
Even the US - Israel's main backer - basically treated Egyptian and Syrian war aims as legitimate.
There is a widespread belief that Israel would have used nuclear weapons if the Syrians and Egyptians had broken through to Israeli territory, and that this was one of the major American motivations for resupplying the Israelis during the war.
It shouldn't matter if a country's territory is occupied or not if nuclear weapons are the ultimate deterrent.