David is sort of like Jesus and not. It’s important to notice his flaws, the narrative doesn’t always flag them.
This chapter he tells two lies. He’s hiding out with some men and they need food so he gets some dedicated temple bread from the priest.
The priest is suspicious, David is alone and somewhat desperate. But he gives him the bread when he says he is on a secret mission from the king. I don’t know how much the priest bought the lie, he needed a plausible level of deniability for supporting a person the king would view as treasonous.
David also fudges the answers about whether the men are holy enough for the bread. Have they kept themselves from women for 3 days? Probably, he essentially says. Besides the bread isn’t that holy, he spins…
Then he runs to a neighbouring country and avoids being drawn into an alliance with the king, who knows his reputation as a great warrior, by feigning madness.
David is a true believer in Jehovah, motivated by a deep contemplation of God, but he is not perfect.
It’s good to remember that christian leaders are not flawless but neither are they invalidated by their flaws. They need to be admired for what there is of God in them, not made into God.