The joke is a pun on the word 'bypass'. 'Bypass' can mean a procedure in heart surgery to route blood past a clot that is causing heart problems.  Bypass means to route around or pass by something, and could be used in a way to say that the doctor would neglect or pass by a good opportunity.
Heart surgeons never bypass a good opportunity .