Walikum as Salam,
Ride quality is superior tnan many competitors in this segment.
You will probably get a 10+ year used Mercedes in this segment.
If you want to drive on short commutes, I might be okay for you but for long commutes it is not preferable.
Depending on the vehicle condition, you will have to do some extra mantainance as with time many rubber parts including of suspension bushings, radiator hoses, belts, pulleys bearings may have gone detoriated.
For spare parts availability: The parts cost will be on a higher side and you will have to go to specialized mechanics for it's mantainance. In older models you might face electrical issues as they are common and very rare cars have zero malfunction.
If you find a good vehicle and you are ready to spend some time with it for mechanical works and you are automotive enthusiast so you are good to go with Mercedes.