Mercedes-Benz and BMW are known for their strong resale value in the luxury car segment.