Does chocolate really help with muscle recovery?

I keep hearing that the magnesium in chocolate can help with muscle recovery after workouts. Is there any truth to that, or is it just a tasty excuse to snack? Would love to hear your thoughts or experiences!