I agree with others that only one can log P1/PIC time and the other cannot. As to which, that has to be determined before the flight.
Quite. As for the poster above who said the two pilots can log time according to who was handling I can only assume he never studied Air Law or has forgotten it. Better go back to the books friend!