lighting – How do phone cameras capture better overall exposures than my camera?

I’ve noticed that when shooting some environmental/city/sea/etc. scenes phone cameras expose both the background sky as well as the subject (person/building/street) pretty well.

On the other hand if I try to get an identical photo with my camera (Canon M50) I keep having to struggle with either the subject being properly exposed and the sky being completely blown out OR vice-versa where the sky is properly exposed (clouds visible, some blue is visible) but the subject is completely underexposed.

This is really frustrating for me and I’m trying to figure out how I can remedy this. I’ve come across the concept of Exposure bracketing, which seems to address such a problem but this would cause an additional overhead of post-processing images instead of having a good overall exposure captured initially. Was hoping to understand how proper settings might correct this issue.

Your suggestions would be appreciated!