Which of the following sentences is grammatically correct?
She sees Mr. Robinson, whom she contends is the best she has known.
She sees Mr. Robinson, who she contends is the best she has known.
Am I right in thinking that excluding "she contends" makes "whom" wrong, and including "she contends" makes "whom" acceptable?