Unless otherwise determined by the commission pursuant to subdivision (m) of Section 56375, territory shall not be incorporated into, or annexed to, a city pursuant to this division if, as a result of that incorporation or annexation, unincorporated territory is completely surrounded by that city or by territory of that city on one or more sides and the Pacific Ocean on the remaining sides.