Order 66 isn't happening without Palpatine being confident that he has Anakin on-side, and Mace doesn't attempt the arrest without intel he gets from Anakin. It's possible this averts the worst outcome, Obi-Wan being present when things turn ugly might be enough to swing Anakin the other way, but hardly guaranteed