The iPhone X has a 1/24 aperture, which means it takes in more light. It has Dual Optical Image Stabilization, while the iPhone 7 Plus only has one of the rear cameras with OIS. Both cameras have True Tone Flash, but the iPhone X also has Slow Sync Flash, which will result in a more detailed background.