I have done it, actually more than once.
No tax is paid, and you get a cheque for the difference.
Of course, the values put on both vehicles are subject to negotiation but are based on recognized dealer "value books" (eg Black Book or others).
It's hell when practicality comes into play, isn't it??
