Some manufacturers specifically advise against household acids because they may affect rubber seals and other components.
Baking Soda
Baking soda is mildly alkaline and can help with certain odors and light residues.
However, baking soda should not be considered a dependable solution for established mold inside a washing machine.
Vinegar
Vinegar is also acidic and can help dissolve some mineral deposits.
But again, manufacturer recommendations matter.
For example, Bosch advises against using vinegar and citric acid in its washing machines because repeated exposure to acids can damage or deteriorate rubber