Seems like the right result.
A prior DA said "I don't have enough to convict, all I have is the word of a loony looking lady that no one would ever want to sleep with and she waited years to come forward. I know, I will strike a deal with Cosby wherein he is forced to testify civilly on the grounds that I promise I'll never charge him criminally. This isn't criminal justice but a civil settlement wherein the victim is financially compensated is some justice and it's better than no justice, since the statute of limitations is otherwise going to expire and he'll never have any consequences at all."
Deal struck. Cosby testifies civilly that he used qualuudes on women. He settles a civil case with the victim for $4m dollars. Victim at least somewhat compensated.
New DA takes office, throws old deal out window. Old DA says, "This is unconstitutional. I struck a deal with him and you can't use his statements or any leads that you got from following those statements."
New DA disregards, uses statements. Judge for some reason allows statements, evidence stemming from statements, allows trial at all. Cosby convicted.
PA Supreme Court, seemingly rightfully to me and the old DA, concludes that the trial was improper because you can't fucking trick defendants into testifying against themselves and then charge them using that evidence that they handed you.
I mean, tell me where I'm wrong here?