There may be two Captains flying together but there is only ONE Commander - in the case of an Air Transport Undertaking (AOC holder) the commander (in law) on an individual flight is specified by the operator, I believe. He/she is the person who signs the paperwork (Tech Log) etc and is the Commander.