Conditional expectation and commutativity in von Neumann algebras