Good photos taken with phones are due to incredible skill of the photographer.
Know how to utilize the advantages of your chosen camera, and avoid its disadvantages. It's not necessary to have "incredible" skills.
In not-perfect lighting the image quality is equally atrocious on all phone cameras.
As it was with film, and all digital formats below about APS-C size. Work around it, add even more noise to the image (for example), or add light to the subject (flash, lights).
Smartphones are "good enough" for most people, who prefer not carrying and maintaining another expensive device, to some concept of ultimate image quality.