ChatGPT generally solves stuff quicker and more precisely for me.
I have yet to receive a badge but could add that to the prompt or custom instructions as an alternative to its encouraging words when I'm nearly there.
It will just learn directly from the code suggestions it gives you. Did you use the suggestion it gave you? Did you fix it manually? Did you generate or write a test case that passed for the suggestion. There are many ways for such a system to learn.