Here’s an interesting question: “if you could take a pill which enhanced attention and cognition with few or no side effects, would you?”
Of course, that’s cheating. There’s no such thing as a drug that has no side effects. The real dilemma would crop up if a cognitive enhancer were available that did have problematic side effects — then my worry would be that pressure to succeed in my classes would be driving students to harm themselves in substantial ways. That happens already. Students take no-doz or skimp on sleep to do well, so there is some unavoidable harm from the stress of learning.
So that’s the information I need before I can make any decision — this is an issue that requires weighing costs and benefits, and telling me there is no cost simplifies it too much. For instance, caffeine has costs, but they’re low enough that my choice is to drink in moderation, but not to give it up altogether.