I have used AI to give me the syntax and function names I need, then researched those functions and found better ones instead.
I once asked AI to show me how to do something and it gave me a 20 line script. After 2 hours working with it, I finally got it to work. Another 30 minutes of optimizing and got it down to 3 lines. A bit more research and I discovered that what I wanted was actually a language feature, and I just needed to call a single function with a single argument.
AI occasionally saves me time, and usually causes a significant time waste.