I would however question if you were actually insured to be commander, from what you have said I would suspect that you were not if the insurance company required your friend to occupy the LHS for insurance purposes.
I agree.
But, that may make the flight uninsured, or even illegal in many countries, but doesn't technically stop him being PiC.
G