A shock absorber contains an element that does damping and a spring. The ideal capacitor can only be one of those elements in the analogy, I think.
The shock absorber isn't a great analogy for a filter cap but, a capacitor has inductance and resistance, even though it is primarily a capacitor and we usually ignore the L and R for simplicity's sake.