Phind gets an honorable mention though - if that’s the style you prefer I’d strongly recommend it.
ChatGPT does hallucinate all the time, but for “learning a language from scratch” it’s very very very minimal. I can’t recall a single time it gave me a response to “idiomatic way to do x in $LANG” which included hallucinated information. Just can’t back it into a corner trying to get it to customize something that needs rigorous optimization for your use case.
Overall, the large innate knowledge base of ChatGPT-4 seems to contain a great model of the modern features of most programming languages and their packages (popular PyPI packages, Spring, Boost, Qt, etc, etc). Once I let it browse the internet, quality goes down and roughly matches Bing and Bard.
Phind I think gets around this by having a custom ranking of sources or something. Not sure what their secret sauce is but it mostly works pretty well.