Since they are part of the words of God and so canonized, they do constitute the law. God does nothing in vain.
the bible consists of many parts including psalms, parables, and prophecies. to insist that all of it constitutes law is ridiculous.
https://www.merriam-webster.com/dictionary/law
a binding custom or practice of a community : a rule of conduct or action prescribed or formally recognized as binding or enforced by a controlling authority
one can’t really claim that a prayer or prophecy defines a binding custom or practice of a community.
also, the bible is not a single text but a collection of texts which have been modified over time by humans. One cannot therefore point to a single text as authoritative— at least without getting into an argument with one faction or another.
The field of biblical interpretation is called hermeneutics and it is very broad, with no single consensus.
https://en.wikipedia.org/wiki/Biblical_hermeneutics
I would point to a best practice but it would be instantly vulnerable to attack since different factions promote different hermeneutic methodologies.
Do a web search on biblical contradictions and you will find some problems. You can’t have g*d’s law contradicting itself, at least without some assumptions.
My personal opinion is that anyone who comes at me out of the gate claiming that the bible is g*d’s uncontested and internally consistent law, and that i must always agree with his or her interpretation, is safely presumed to be a illogical wacko.