I had fun understanding the creative choices ChatGPT made while pair programming with it. But to your point, I had to be on top of its choices and make it change quite a few things to get a desired result: