I think hallucination is better and more accurate at it implies a bit of imagination and buffoonery deceit.
I don’t think confabulate matches as well as it implies confusion or mixture of different ideas.
ChatGPT isn’t confused, it’s making things up. It’s trying to bullshit as best it can in hope that what it makes up convinces its user.