It is he I relate to most of all. Or, It is him I relate to most of all. I believe that in neither of the two sentences do the words "him" or "he" act as a relative pronoun, for the simple reason that they are not relative pronouns. Instead, both sentences have an implicit relative pronoun. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.