Nothing is avoided. Universe is just math. Copyright will collide with mathematical reality eventually and software is what brings math closer and closer to copyright and will eventually destroy it completely. AI is just recent wave of this process.
This border between universal things and copyrightable works always existed. Some of these technologies might superficially seem like they create some sort of crisis in the area (GitHub CoPilot for example). But I think it’s mostly due to the fact we haven’t yet seen many businesses and thus not many court processes.
My amateur legal guess is that it changes nothing: copyright and other protections are unscathed. If you use a copyrighted work or registered trademark (or something close enough to be infringing) you are liable - and then it doesn’t matter where it came from or if you believed that MagicalAIService would spit out royalty free original works. They probably won’t, and they will never accept liability, it will always be on the end user.