amateur, if the guy in the right hand seat didn't indicate they were PiC for the flight and didn't do the take-off and landing, then the left seat pilot should keep the PiC time. All in my opinion only.
Let this be a lesson to you guys to brief who is in command of a flight before you fly! Imagine if you'd had an emergency and you both tried to make conflicting command decisions.