One, with software, you could delay any action for a set amount of time as such to give your brain time to make a more concrete decision. Idk how long that delay needs to be, but I'm guessing it's less than 300ms.
On the other hand, if the hardware is responsive enough, you can simply decide to close the program/ad/whatever another split second after that fleeting thought.
The pessimist in me thinks that the first option is probably the best one given software optimization in the past two decades, but who knows.