The way I read the ballistic tables, the 9mm will drop 60" in about 250 yards, the .223 will drop 60" in about 460 yards.
As a practical matter, both rifles would be sighted to zero at some reasonable range, probably 100 years for the 9mm and 250 yards for the .223. This wold start both bullets on a slightly upward trajectory at the muzzle. The 9mm will not gain significant range from this but the .223 might gain 150 yards or so.
I don't think it matters a lot, unless you are seeing varmints or stray dogs the size of horses you are going to be firing down with nearly any shot you take. Essentially, double the distance to the target from your position and you have a reasonable carry range for the bullet.
For dispatching varmints and marauding dogs on your property think hard about a 20 gauge shotgun.
Noted and that makes sense about the carry range. ...Unless I skip a bullet off a skull or shoulder, maybe (but then the magnitude of the velocity should be considerably lessened.)
Realistically, then, if I choose my position well, the odds a shot would leave the property are low, so, the noise and “comfort of use” by my wife and daughter might be bigger factors.
A 20 ga. would not be as loud as my 12 ga., anyway!