In the following sentence, what does the pronoun it refer to?
A differs from B in that it is....
I read before that a pronoun refers to the closest name (B in that sentence); however, here it makes more sense that the pronoun it refer to A (not B).
I am totally confused when I read that sentence in an article. Please let me know your opinion.