Few CS grads get a chance like that. Not everyone can do the coursework (including the masters degree) and then produce useful work. There's this myth that every doctor, by virtue of getting into medical school is somehow a success-savant that could've succeeded in any other industry. It's hubris and a bizarre lack of perspective.
Yes doctors are smart and we have the unusual strengths of strong work ethic and delayed gratification. Determination will get you far in medicine. It's not near enough in CS.
I finished undergrad with a CS minor and worked a couple years ... you know the 80/20 rule where 80% of work gets done by 20% of the people? In that world it's more like 97/3. The superstars carry the creative and design loads that make or break a project, and a bunch of drones bang out code or get in the way.
Those guys didn't "choose" to be gifted programmers and computer scientists when they looked at the job market as undeclared undergrads. They were on that path in high school when they excelled in math and spent every free minute messing with computers. It's just wrong to think that even 1/10th of a med school class could've just done that instead.
I was good at it too ... sort of. There's no comparison between the elective language intro classes for dabblers, and the meat of the upper division curriculum. Beyond the basic language classes the first real hurdle is usually a data structures course and then things get steep. I'm a clever guy and I admit I struggled with the more advanced classes. I didn't exactly carry the team on group projects. The 7 or 8 upper division classes I took were an anchor on my gpa and hurt my med school app. No offense
but pride in getting an A in an elective lower division programming class is like telling a mathematician that you're good at math because you got an A in geometry, and that you could've been successful in the field if the paycheck was better and you really wanted to.
These threads drive me crazy, if you can't tell. I don't really mean to attack you but I don't agree at all with your perspective.