PCB antenna and SMA connector
There is a similar connector that can connect the onboard antenna when there is no coax and disconnect the onboard antenna when the coax is connected.  That would solve your problem without any soldering to change the configuration.
See What connector is similar to U.FL but has no pin? for a discussion on the topic.