I'd argue the best way to learn is to read a lot of production-quality code to get a sense of structure and best practices in any given language.
Debugging is the primary skill of a programmer. 90% of programming is fixing bugs, the other 10% is writing bugs.
Maybe the LLM is teaching debugging by giving bad examples :)
I don't think this is a valid comparison. If you'd read 10,000 hours of sheet music I'd wager you'd know how to read music.