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.
(..) will never be crowned king. Gandalf does not hesitate to sacrifice those closest to him... ...those he professes to love. Tell me, what words of comfort did you give the Half ling... ...before you sent him to his doom? The path that you have set him on can only lead to death. I've heard enough! (..)2003 The Lord of the Rings: The Return of the King