Mercedes is an outlier. Try comparing Toyota with Lexus, Nissan with Infiniti, Chevy with Cadillac, or Ford with Lincoln. In all of these instances, the luxury marques have equivalent or better reliability than their economy counterparts.
Of course, whether or not the reliability and features are worth the cost is a different question entirely. (I generally lean towards no.)