Please justify why you think it's a bad comparison?
I think it's apt. Cooking shares many qualities with coding, you're under time deadlines to produce something for a end consumer (for the most part). There's lots of competing methods and you have to select which ones work best for the product you want to produce.
Most importantly you can cook something amazing that everyone loves, or a charred lump that no one will touch. Much the same as coding.
Cooking is way more simple compared to programming. The recipes are easily understood - a complete opposite to software specs.
Cooking does not evolve that fast compared to programming. Everybody loves their grandma's pie.
And most important cooking is manufacturing and programming is designing. Regular cooking is trying to reproduce something that was done as close as possible, while programming involves dealing with lots of specifics.
Rule 11213: First person to mention "time" when linked article does not include the term "time" takes 1 step backward, 1 step forward, 2 steps backward, 1 step forward, 3 steps back. Back to the future.
Coding doesn't necessarily involve time deadlines, and maybe cooking doesn't either, although it seems to. I agree with the rest of what you said though.
I know, which is why I said '(for the most part)'. 80%+ there's some kind of tangible time limit on what you're trying to achieve. Be it self-imposed or otherwise.