Not only do they have micro sized sensors compared to DSLRs, but they have terrible lenses too usually I think.
There is 100% without a doubt no contest on this one.
The reason the other one was probably better, is because the camera wasn't "fooled" as bad on it.
What I mean by that is your cell phone camera is required to "decide" what settings to use, and sometimes it will fail badly when choosing them.
The reason a good photographer and a DSLR can produce such good pictures, is that the good photographer knows what settings to use.
A camera is just a tool, and needs to be used well to produce good shots.