I think the difference is the user's type: if a programmer is looking for code, sans any learning interest, then ChatGPT is handsdown the optimal choice; just get an solution, do copy-pasta and move who. If one is looking to learn, then I think SO is better. I've personally found the lazier devs jumping to ChatGPT as they are not interested in learning or asking smart questions [0].