I think this depends on the shot. The Pixel 4 easily beats “cheap DSLR” in several settings, particularly low light. I know folks who have an iPhone as a phone and a Pixel as a camera :).
It’s true that it’s also much better at “photo production” (capture => minor edit => post), but I think you can find examples where the photo itself is strictly better.