For projects, it's also a licensing issue. You don't own the copyright on AI generated code, no one does, so it can't be licensed.
Think of it like random noise in an image editor: you do own the random pixels since they're generated by the computer, but you can still use them as part of making your art - you do not lose copyright to your art because you used a random noise filter.
Which it might. And needs to be judged on a case-by-case basis, under current copyright law.