here are 6 main factors at play
Sensor size - the bigger the sensor for the same number of pixels, the shallower the depth of field, higher the dynamic range (the very bright to the very dim, without going complete white nor a noisy shadow) makes it better for low light photography.
Optical/sensor stabilisation - reduces the impact of camera shake.
F stop - (counter intuitively the smaller the number the bigger the whole), smaller the number the better the natural bokeh effect, better low light, better fast action capability.
Lens quality - goes without saying.
Higher pixel count on the sensor, improves the panorama & digital stabilisation ability, to digitally zoom into the image, to counteract physical lens distortion - critical on an ultra wide angle lens.
Computational, more grunt power, and the quicker the photo can be created from its parts when taking a panoramic shot or stacked photos (for low light, increased pixel count) and smoother slow motion video footage).