The dataset these AI use for training is flawed in many cases, so we get inaccurate answers. You must manually review the code whether you use ChatGPT or the upcoming Google AI. They will have the same problem.