At the high level, you asked LLM to translate N lines of code to maybe 2N lines of code, while GP asked LLM to translate N lines of English to possibly 10N lines of code. Very different scenarios.
It doesn't really matter what we told it do; a task is a task. But clearly how each LLM performed that task very different for me than the OP.