Comments are good. I am a huge proponent of more comments over fewer comments. I have written functions where 80% of the lines are comments. But this is a bad comment for very simple to understand reasons.
Whether a LLM coding model demonstrates understanding of unnecessary comments might be interesting, as would any differentiation in quality if my prompt asked for more or fewer lines of comments.
> Whether a LLM coding model demonstrates understanding of unnecessary comments might be interesting
I think it would be an interesting experiment, that sounds like a great idea for you to pursue. Make sure to sample a wide variety of models, and include a caveat that LLMs are not a source of truth regarding such matters, as they are simply providing probabilistic text completions based on prior training data.