Bill Cosby’s publicist compared the 81-year-old comedian’s conviction Tuesday to the misconduct allegations against Supreme Court nominee Brett Kavanaugh, saying that were both part of a “sex war.”

Andrew Wyatt proclaimed that Cosby’s conviction was the result of “the most racist and sexist trial in the history of the United States” in a press conference following Montgomery County Judge Steven T. O’Neill handing down a sentence for Cosby of three to 10 years in state prison.

“What is going on in Washington today with Judge Kavanaugh is part of that sex war that Judge O’Neill along with his wife are part of,” Wyatt said.

Kavanaugh is currently facing two accusations of sexual misconduct, which were first made public last week prior to a scheduled vote by the Senate Judicial Committee on his nomination. The first came from Christine Blasey Ford, who claimed that in the 1980s, Kavanaugh sexually assaulted her in a bedroom during a party. That was followed by an accusation by Deborah Ramirez, who said Kavanaugh exposed himself to her while she was drunk at a college party. Kavanaugh has denied both allegations, calling them a “smear, plain and simple.” in a statement released by the White House.

“The people who knew me then know that this did not happen, and have said so,” Kavanaugh said.

Unlike Kavanaugh, Cosby is now classified as a violent sexual predator following this week’s sentencing and more than 60 women accusing him of sexual misconduct. Many of those cases are past the statute of limitations for Cosby to face charges, but in April he was convicted of three counts of aggravated assault for drugging and sexually assaulting Andrea Constand in his Cheltenham, Penn. home in 2004. Cosby’s attorney Tom Mesereau promised to appeal, saying at the time “The fight is not over.”

According to Wyatt, the “sexist and racist” mass media did not allow Cosby’s record as “one of the greatest civil rights leaders in the United States for over the last 50 years” to be brought up in court.

Wyatt also accused prosecutors, without evidence, of falsifying evidence.

Get The Brief. Sign up to receive the top stories you need to know right now. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Write to Gina Martinez at gina.martinez@time.com.