 In the model

formula_28

M mediates X's influence on Y, while X also has an unmediated effect on Y.Thus M is held constant, while do(X) is computed.The Mediation Fallacy instead involves conditioning on the mediator if the mediator and the outcome are confounded, as they are in the above model.