The first thing to say is that you cannot reliably power the Uno with 6V via the DC socket because it does not give enough voltage overhead for the built in voltage regulator to work.
Depending on the version and the board, there is circuitry on some that will favour the jack over the USB power. For this to happen, Vin has to be significantly higher (sort of) than the 5V you get from the USB. Typically the value is 6.6V but the tolerances of the components that go into these boards could drive that up as high as 9.
The input is fed into an op-amp wired as a comparator and if all is great, will trigger a transistor to switch off the supply for the USB. All other USB functions remain active though.