Outside of the Anglosphere judges are free to ignore precedent, which they call "jurisprudence". This is a tradeoff: you get justice "in the moment" in exchange for less future surety about how the legal system will react. The legal system might just decide that you doing the exact same thing someone else did and got away with is now illegal.
My personal opinion is that any basis of law can be used for tyranny, and that common law and inviolable rights are less protective than we have been propagandized to think. Even common law legal systems occasionally overturn precedent if they feel like it - remember when anti-abortion laws were a violation of the 4th Amendment until they weren't?
[0] This even extends to the word "franchise", which means "French-ize", as in to be given freedoms by being turned into a Frenchman
[1] What if your enemy seeks to take away your rights?