As is the case with previous Huawei devices, the Mate X uses Leica technology in its cameras — which include a 40-megapixel wide angle lens, a 16-megapixel ultra-wide-angle lens, and an 8-megapixel telephoto lens.
Samsung's Galaxy Fold has six cameras, which include two 10-megapixel selfie cameras, an 8-megapixel RGB depth camera, a 12-megapixel telephoto camera, a 12-megapixel wide-angle camera, and a 6-megapixel ultra-wide-angle camera.
But it's impossible to tell which phone snaps superior photos without actually using them, as there are many factors other than the sheer number of cameras or megapixels that contribute to image quality.