The comparison between HTC One M9 and the Sony Xperia Z3

Considering HTC One M9 and Sony Xperia Z3, which of these two smartphones has greater and special features with respect to size, model, and pixels of the camera phone? In terms of the various weather conditions pertaining to these smartphones, which of them promises durability and optimum qualitative performance? Thank you.
