You forgot: Doctors have a strong professional organization that works for them, handles things like certification, keeps the labor supply favorable and wages high. Developers, on the other hand, swallow the "unions are bad" mentality and compete with each other in the usual "labor race to the bottom".
I don't think the AMA has much affect on employment of older doctors. He's right - older doctors are in demand because they're assumed to have acquired some wisdom along the way. The same is not true of software developers.