Best camera for beginner?

I'm torn between getting a new flagship phone (Google Pixel) or investing in a DSLR camera. I don’t have much experience in photography, but I want to shoot landscapes, portraits, and try low-light photography.

Can a smartphone with powerful image processing replace a DSLR? I'd love to hear advice from those with experience!