Definitely not my experience, if for no other reason than the overwhelming portion that I know or have worked with is not white, was not born in this country (regardless of which country we’re talking about/in at the time), and I only know 1-2 with any sort of real social connections in the area they now live and work in. They haven’t done as well over the years as most, but there are outliers of course (Bill G being one prominent one of course).
Also no real generational tendencies (I only know 1 or 2 folks with parents in any sort of engineering or computer discipline), unlike doctors or the like.
One counter point, which is the defining feature of tech imho, is you don't need to be born into it. Its difficult to become a doctor without prepping years or more ahead of even applying. You can break into tech at basically any point in your life, it just takes time (as you said) and effort. And of course, interest will make it more enjoyable / tolerable. Its not a perfectly egalitarian club, but it is certainly _more_ so than any of those other professions, by a few orders of magnitude.
If you're not one of the people who typically joins that kind of club you can hack it but you won't feel like you belong or you might but it will take you many years.