In most cases you should proceed with the immigration medical exam rather than wait for the passport renewal, especially since the medical request has a strict 30-day deadline.
IRCC immigration medical exam, panel physicians generally prefer a passport, but they can often accept other valid...