For writing code, I've found Claude far better at conventional/framework based code. I've found ChatGPT better at reasoning about more complex/nuanced code.
As other commenters have said, that is just my personal opinion, I have zero evidence to back that up lol