If it is any 'comfort' to you, I've made the same mistake myself. = It might give you 'comfort' to know that I've made the same mistake myself.
When we went out for drinks together, I realized we were getting 'too close for comfort'. [=we were getting closer than I wanted to be]
Knowing that I can rely on your help is a 'comforting' thought. = It is 'comforting' to know that I can rely on your help.
(..) You say good night too. Go on. Now go to sleep, my little mermaid. Good night. This is my idea ofcomfort. Solid comfort. Look at him, Figaro. He almost looks alive. Wouldn't it be nice if he was a real boy? Oh, well. Come on. We go to sleep. (..)1940 Pinocchio