Just want to add, this is really about law and order and what the prosecutor did. A deal is a deal (except when it isn't).
"Pennsylvania’s highest court overturned Bill Cosby’s sex assault conviction Wednesday after finding an agreement with a previous prosecutor prevented him from being charged in the case."
https://www.aol.com/entertainment/bill-cosby-sex-assault-conviction-163915409-164847292.html