There are rights, and there are protections.
You have a protection against self-incrimination, but you can choose to testify. You cannot have a judge compel you to testify against your protections.
The 8th amendment is a protection against cruel and unusual punishment imposed by the government. Being forced to take a permanent experimental drug or face a harsher sentence is cruel and unusual. A judge cannot compel you to accept a harsher punishment because the alternative punishment is an unconstitutional violation of your protections.
-PJ
The judge didn’t compel him to take the stick. He sentenced him to 5 years probation. That’s the sentence. The defendant has the option, not a mandate, to get a reduced sentence if he gets the jab. And that’s why it’s not a constitutional issue. He’s not mandated to accept the alternative sentence. It’s simply an option.