Which pill do you take?

Sounds a little bit like the Stephen King book, 11/22/63, where a guy tried to prevent the JFK assassination by going back in time.
That would be pretty easy. Just kill Oswald.

Stopping 9/11 would be a bit harder. Actually depending on how brave you are you might be able to stop the hijackers on one of the planes - though it would be 5 against 1 and you would have to smuggle better weapons than them (they had boxcutters). But preventing it completely would be something different.