You don't need to do anything to be eligible for complimentary upgrades but your priority would be better by first using UA MP account on the ticket and then upon arriving in ORD switch the return to your status match CO OP acct.
No way to have different accounts apply to different segments at the same time but you can switch in midstream.