There are a number of ways in which a judge may avoid following precedent – overturning or distinguishing a previous ruling, for instance.
However, is there any way for a court (particularly a superior court) to avoid creating a binding precedent, particularly in cases where it may not be desirable to do so?
For instance, if judges were required to rule in a certain manner due to (perhaps outdated) legislation, but they did not want their decision to be binding on subordinate courts, perhaps because statutes prevented them from ruling in favour some case where marriage equality rights would be upheld, but they did not wish to set that precedent.
While it is true that judgments based on statutes will be binding only while the relevant parts of that statute is in force, I suppose my question deals with the scenario where judges would prefer to rule in a certain way, however are unable to do so because of statutes that haven't been amended to reflect changing community values, and they do not want to set a precedent in the meantime.