Material around the closure area can interfere with a tidy fit or make cleaning difficult. It should be dealt with through the permitted routine rather than forced into the seal.
Understanding this situation
A visibly dirty edge and a damaged gasket are different concerns. Cleaning may help ordinary residue, but it cannot prove that a split or distorted component is sound.
A useful next step
Let the machine stop safely and follow the manual's accessible cleaning method. If the door still needs unusual pressure or water appears, leave it unused and arrange assessment. Do not use the latch to crush an obstruction into place.
Manuals and supporting guidance
Model-specific instructions take priority. These references support the practical principles discussed here; they do not diagnose your appliance.