In both cases it’s a battle right off the coast of a superpower with pretty massive home court advantage to the closer nation. Right off shore means no supply lines and the ability to just fire shit from shore at enemy ships and planes. The entire industrial output of the closer nation is right there.
Note that I am leaving thermonuclear escalation off the table. Nobody really wins that one. I’m imagining a scoped conventional conflict in the form of an intervention.