I am a serious photographer and have a significant investment in gear. Photography is not about pixels, it is about light and so the most important gear are the lenses, then the cameras. So a great full frame DSLR with a professional series lens will always take a better image than a phone camera.
... but you can only capture an image if you have a camera with you so a phone camera is a definite alternative.
I have been on expeditions with National Geographic photographers who deliberately set aside their professional gear to use an iPhone to take all their images. The results were awesome!
It is the photographer, not the camera that creates great pictures.
PS - Post processing aka Photoshop helps. Ansel Adams was renown as much for his prowess in the darkroom as behind the lens.
PPS - Trust me, you do not want to take this picture with an iPhone