Put it in the drum instead of vinegar. Mold and coatings disappear, and the washing machine will smell wonderful!

detergent residue can collect inside the folds of the gasket. If the area remains damp, it can contribute to musty odors and microbial growth.

Samsung recommends cleaning the door gasket regularly and allowing it to dry thoroughly.

Citric Acid, Baking Soda, and Vinegar: What Do They Actually Do?
These household products work differently, and they should not be treated as interchangeable.Citric Acid
Citric acid is acidic and can dissolve mineral deposits such as limescale.

That makes it potentially useful for descaling—but only when the washing machine manufacturer allows it.