Wasn’t David guilty of similar things with Bathsheba and her husband?
Just a minor point.....David is generally considered a king not a prophet. David the king had Nathan the prophet to instruct him concerning God’s wishes for his rule
(Also, Jews and Christians are free to criticize David...as we are doing...and to learn from his mistakes.....)
So there are some good reasons to avoid relying too much on that comparison...
Single instant. David was a king not a prophet in the Biblical sense. David repented.
The glaring difference between the two instances is that David, once confronted by his sin, sought forgiveness. Perhaps you unintentionally overlooked that little detail, hmmm?
King David, when confronted later, confessed his actions as sin. The Bible never condones sin. So, what’s your point?