The morality is actually a little greyer there. There is research showing that consuming cartoon or otherwise artificially drawn CSAM does in fact raise the likelihood of the person who consumes it actually committing an act of abuse against a child, instead of being an effective substitute to prevent such acts.
Therefore, it may be a good idea to ban such images even though their production is harmless.
It's a difficult area of research, which is why it's a shame that we need more data on the issue to inform our laws on banning or not banning artificially produced CSAM.