TWFE is an *estimation method*, while DID is a *research design*. These are very different things!
For example, unconfoundedness or selection on observables, would be the research design; it would provide the foundation for your *identification analysis*.
Under unconf. ,these are estimators for the same causal quantity. However, they still can be used when unconf. does not hold, though the interpretation would of course change.
But this is something for another time!!!