Block battery if USB is plugged in
With the drain and the source connected as you show, it will do what you want — the body diode is pointed in the correct direction, as shown below. But you do need a diode in the USB path, so that the gate can be pulled to ground when the USB is disconnected.



simulate this circuit &ndash; Schematic created using CircuitLab