Yeah, copyright infringement is inevitable.
I'm of the opinion that if the generated AI code looks no different than from human code then it didn't save you anything. And if the code was trivial enough for an LLM to not need rework it probably could be covered with a template snippet from your crafted collection of templates.
And there's research showing no productivity improvement at all, even negative.