You would resolve both switches first.
While the game actions in real time are done one after the other, in game time, they take place instantaneously.
Now, as the question is asked, Ditto is going to be KO'd on the bench.
Maybe you meant to have an Expert Belt on it?