The worst problem is that nothing prevents AI from generating the same code for different people. So, who owns the copyright? The first person to ask for the code? How do you stop AI from giving you copyrighted code it generated before? There's no way to know.