Honesty is the best POLICY. It's the best guiding principle when you need a habitual reaction.
However honesty is not necessarily the best STRATEGY. Sometimes there are larger issues - such as life and death - financial ruin - career goals etc.
If you run a company at what point do you let your suppliers know the depth of your financial woes and the possibility of bankruptcy that will leave them without full payment? Unfortunately you have to play people.
That's why human brains are so big. Social interaction in a clan of about 120 people requires some lying.
The bible is full of divine deceptions.
Why would Jehovah make Moses feel he was actually influenced by his intercession on behalf of Israel.
Why would Jehovah act like he needed to promise he would never kill every living thing again?
Why would Jehovah let his people believe that he really liked the smell of fat and entrails being grilled on the altar?
When the Bible promises everlasting life (on earth or in heaven), based on Jehovah's tendency to deceive, how do you know this isn't a manipulative trick to get you to cooperate.
Not that I believe any of that. But it shows lying is an essential option in surviving in a community?