I believe better AI considers distance more heavily in war declaration, so that might have created a different outcome here.
I know it is not a sea invasion here, but it certainly handles that much better than the base AI, which can barely transport more than one boat worth of troops at a time.