GPT-5 vs Claude 4.5 — which is better and when to use each?

What are the main differences between GPT-5 and Claude sonnet 4.5 when using them in Cursor?

Which model works better for specific tasks — for example, coding, project structure, problem-solving, or brainstorming ideas?

I’d love to hear your tips on when to use each model to get the best results for large or complex projects.