The problem is, that ChatGPT is quite often wrong. While the answers look perfect on first glance, in my tests they often didnt survive closer examination. One of the reasons ChatGPT is now banned on StackOverflow.