You’re right, I was overgeneralizing.
I assumed most legal systems relied on precedent, but that’s not accurate globally. The majority of countries follow civil law systems, like France and Germany, where precedent isn’t binding in the same way.
Where I was coming from is that many of the largest and most economically influential countries like the United States, United Kingdom, and India do use precedent-based systems, which probably skewed my perception. So yeah, globally I was wrong, but I can see why I thought that.