It doesn't matter if you can reason or 'understand programming' if you haven't learned what is necessary to understand this particular piece of programming.
Or is it that you think you can 'reason or understand' any piece of programming? And you possibly assume that is easier, to read what an LLM generates rather learning what is necessary to write it yourself?