* CS is notorious for its solitary aspect. Stare at a screen juggling abstractions for hours on end.
* CS is notorious for lack of career paths. Between ageism and outsourcing, once you hit 40, the perception is you are relegated to the bottom of the pile.
It's also false. Software is inherently collaborative, especially at senior levels. And it will likely stay that way as long as the job looks a lot like consulting due to lack of defined sub-specialities. There is no technician specializing in particular forms of testing in the software industry. In medicine, there is a whole host of these specialities. Point being "it's your job, so figure it out" is the rule. And that means working out not just solutions but well defined problems with peers, customers, superiors, and other stakeholders.
It's possible to do interesting Computer Science in relative isolation, but good luck making a career out if it without collaboration, publication, teaching, and other inherently social activities.
You might know all this, but I think it's important for the industry to push back on the nerd-bro in a basement imagery since it's absolutely not what actually happens.
As a medical professional, you get to interact face to face with several people every day, and have a direct observable positive impact in their lives.
As a CS professional, you spend half your waking time dealing with or dishing out style guide feedback nitpicks via email / irc / github [FAANG experience], interacting remotely with funny little avatars. You very rarely directly experience the impact of your work, and the impact itself is quite a bit less clear cut positive.
It's more difficult to negotiate your hours in tech. How many people do you know who say want to only work 2-3 days a week for 5 hours a each day? The medical/dental field (especially if you have a clinic and don't do procedures or complex operations) tends to be "independent". Meaning, each case you get is a consultation, and your "productivity" is in how many patients you see in a given timeframe. This is much harder with programming.