The long and big discussion of this topic vis-a-vis AI image generation and copyright makes it seem like it's a complicated topic, but I don't see it that way. In my view, there are no technical details to sweat, here, really.
Firstly, in much the same way that a language program like ChatGPT works by smashing together words it doesn't actually know the definition of together in a sequence that has the highest probability of being correct based on the other sequences of words it was been shown during its "training" process, AI art generators build images by taking the entered prompt and (to simplify) placing lines where they seem most probable to belong based on images it has been shown during its training process that were labeled with the same terms used in current prompt. While I continue to assert that the language model's method of creating text responses does not in any way remotely match the way humans think and compose their communications, I will concede that the image generator's mechanism of operation does seem to at least be analogous to the way humans learn to create some kinds of art, and especially how they learn particular styles of painting or drawing.
Nevertheless, again, like ChatGPT the AI image generator isn't a person. It's not a mind that has opinions or desires and is making decisions with agency, it's a machine that only starts running when an operator activates it, does the work it's programmed to do, and then stops until it's activated again. It is a tool.
A person who makes a painting in the style of another person, isn't violating copyright, as far as I can tell. I can't think of or (quickly) find any legal cases of someone even claiming that a person has committed some kind of tort by painting or drawing or composing something that merely looks like something [known artist] would have created. I don't see why using an AI generator to make the work as opposed to doing it manually with a paintbrush or a digital pen tablet would make a difference in this regard.
A related but separate issue is trademark. Generally speaking if I start making and selling style-accurate hand-drawn pictures of Mickey Mouse I can in theory be sued by Disney for mark infringement. I also don't see why using an AI image generator to produce the images instead of making them by hand would make a difference in this case either.
I guess a simpler way to put it would be: if the person who prompted the AI image generator to generate the image had created it entirely by hand instead, would the image be infringing (whether copyright or trademark)? If the answer is yes, then it is still yes for the AI-generated image. If the answer is no, then it is still no for the AI-generated image.
This seems fairly self-evident to me, I don't understand why people are struggling with it.