I prefer tea. I get up at 4:50 am 5 days a week, and I rarely sleep past 7-8 on weekends. I just make sure I'm asleep by 10:00 pm before work nights, and weeknights I stay up til 11:00 max.
I really like thinking that I think slowly, and that I can control my thinking direction using another level of meta-thinking. It's one of my most favorite and dramatic life shifts as an adult, that I have made. Pretending that my mind is a machine that needs to be turned on is a one way ticket to crazy town, and it's pretty hard to leave crazy town.
But otherwise, I don't understand how loneliness has to do with any of this. I'm lonely regardless of whether I drink tea or coffee.