Thursday on ABC’s “The View,” former presidential candidate Dr. Ben Carson defended his endorsement of Republican presidential candidate Donald Trump against co-host Whoopi Goldberg’s charges of racism and sexism.

Whoopi Goldberg asked, “Sir, I hate to ask this question, but you have aligned yourself with a man who has bashed women, made countless racist remarks, and you’re Ben Carson. Why would you — why would you align yourself with that is this this?”

Carson answered, “Well, you know, you have to look at the good and the bad. There’s no perfect person.”

Goldberg said, “No, I know that.”

Carson continued, “But you look at when Donald Trump first went down to Palm Beach area and a lot of the clubs down there would not accept Jews and Blacks. He insisted on Jews and Blacks and helped to break that open. So, has he said some things that I wouldn’t say or that you wouldn’t say? Of course.”

In the second segment, the argument continued when Whoopi Goldberg asked, “If you’re running for president of the United States of America, a country which has said to other countries, bring me the folks who need freedom. We’re here for you. when you talk about Mexicans being rapists and murders — if he had spoken to your wife the way he has spoken to some of these women, would you take that, sir?”

Carson replied, “When you’re very nice, you are respectful, you talk about the real issues and not get into all these issues, where does it get you? It gets you where it got me, nowhere … Here’s my point. He and some of the other politicians, they do what people want. They say what people want to hear.”

Goldberg replied, “That’s how Hitler got in, sir. That’s how Hitler got in.”

Follow Pam Key on Twitter @pamkeyNEN