SFO-IST-anything in Scandinavia is over mpm.
CPH is your destination based on furthest multiple day stopover from origin. It's not up to you to decide. When I made my booking the Aeroplan agent checked all my stopovers to determine which was the point of turnaround.