Eh, I doubt that. Not saying that they are equal in terms of quality, but in decent lighting there's no reason why phone wouldn't take decent pictures. Some years ago, when phones had next to none post processing (and obviously none of those e-waste 2-5 MP macro or depth cameras), phone pictures could look really good. Might not be exactly as good as DSLR, but surprisingly close. Current phones may never reach great pictures, due to usually awful or just okay post processing. It doesn't matter what you buy, Pixel, iPhone, S21, they all alter pictures so much that you can tell it's not a faithful representation. Here's an edited picture from Galaxy A50 (ultra wide lenses):
View attachment 219769
You can tell that sensor is somewhat potent, but is crippled by few things. First of all is picture size. Before editing in Paint.net, picture was under 2 MB in size. For 3264x1836 picture (8MP), 2 megabytes are really low (my previous phone also had 8 MP sensor and pictures were 4-7 MB big, meanwhile with overridden settings, they would get to 45-55 MB in size, the losses in Galaxy A50 are massive). Picture underwent a massive lossy JPEG compression. When looking at it, you can tell that it had some smoothing applied to hide JPEG artifacting. As compensation, picture was oversharpened. I also suspect that bright whites and deep blacks are somewhat crushed to compensate for graininess. Other than that, post processing overexposed this picture, but to some degree I managed to fix it.
I don't know if it's of any value, but it's not really a sensors that are poor in phones. They were poor in 2000s, when 0.3 MP sensors dominated and 2 MP in phones were rare. Their physical size was likely smaller too. But today, it's not the sensors that are limiting factor, but rather a very aggressive picture processing. A digital camera, with exactly the same senor, but without annoying Samsung's post-processing and overly aggressive compression, could take way better pictures. Sensor is only a limiting factor if picture is clearly grainy, lacks resolution, has awful dynamic range. Lenses, only when stuff is not in focus, not sharp enough or you don't get that bokeh pizzaz.