You overlooked an even bigger contradiction! Namely:
> The biggest problem I've had is not that it doesn't write correctly, it's that it think it knows how and then produce good looking code at a glance but with wrong logic.
I cannot rightly apprehend the kind of confusion of ideas that would provoke such a statement.
EDIT: upon careful rereading, I think I misunderstood. The intended meaning is likely closer to: the problem is less so that codepilot produces incorrect code and more so that its incorrect code appears correct at first glance.
You have my sincerest apologies. I leave this thread intact as a testament to my hair-trigger snark.