2-to-1 Multiplexer logic equation: is order of inputs important?
If you set A to 0 and B to 1 and S to 0 you get a value of 0 for the output. If you invert S you effectively swap A and B and get 1 at the output. So this is not equivalent.