"Nonsense", to the other responses to your question, the 5X camera (along with the 6P) is outstanding! I consistently "out-shoot" friends with the iPhone in side by side photo situations. This usually involves low light so I can't speak to other scenarios. My 5x camera is one the reasons I love the phone, among quite a few others.
I own a 5x. The camera will be the primary reason I upgrade before I really need to. Its mostly decent but occasionally bad: Out of focus (or incorrect focal point), extremely poor in low light, occasionally crashes (not doing anything fancy here). I think the phone overall is good, and I can't imagine using non-vanilla android. But prior to the Pixel announcement (and after owning this and last gen's Nexus) I'd started considering giving the iPhone a try based solely on the camera.
what do you think of nexus 5x in that regard?