For generating code, I'd recommend using Copilot because, in my opinion, it generates the best code. I once made a 3D raycasting game in HTML, and it did better than I expected, without any errors.
Viewing post in Baldi's Fun New School Ultimate comments
Gemini is also good for generating code. I've tried both Copilot and Gemini, and they both have the same issue: sometimes when I ask them to create a game And I ask to modify the code, the game stops working And that's what bothers me most about using AI to generate code, Sometimes it manages to fix the errors, and other times it doesn't.