If you have energy to think during races, you might want to start pushing harder.
Even at IM distance, I am too "busy" to think about anything in particular. The whole ride, I am checking my watts, watching where I am going, checking the time to know when to eat, etc for the entire ride. During the run, same thing, but it's all about either keeping someone in my sight, or calculating how fast I am closing in, and if I need to back my own pace off, or what time is it I have to eat, etc.
Especially during the run I find if I start letting my mind wander off the task at hand, the pain creeps in. I can put the pain away as long as I keep my mind on the task, but if I start letting go of that control, the first thing I think about is how good it will feel to stop, how good that post-race beer will be, then the pain rushes in. I can't afford to "think" about anything during the IM run.