For other topics that aren't strictly programming, eg AI, ML, game theory, cryptography, quantum computing, probabilistic methods, optimization,... it would take a significant amount of dedication to match the amount of understanding that a rigorous course with problem sets can give you in self study.
Also, you're going to have an extremely difficult time getting to work on that stuff without a degree, given that even PhDs often end up on regular business bullshit.
In my experience, it's not the degree that gets you the job, it's the research you got published in the niche you're applying for. The number of people with excellent publications in such a niche, but no degree, is awfully small.