A more correct analogy would be robbing a store IRL vs. in a video game. Or murdering someone vs. directing a movie about a murder.
If you generate defamatory AI pics of actual people, there are already laws against that, and the CSAM aspect can be exacerbating.
Otherwise, you should be free to jerk it to whatever your heart desires, which seems to be the real crux of the matter.