The story makes it seem that David raped Bathsheba.
Thank you for bringing attention to Bathsheba’s role. David was convicted of murder and adultery not rape. So there needed to be a willingness or submission on her part regardless of her reasons. However, in the illustration that Nathan gave representing David’s actions, Bathsheba is pictured as a female lamb that king david killed which mitigates Bathsheba’s role. Another thing that needs to be considered is that there was no insidious scheme by Bathsheba or either of them that caused them to sin. It was circumstantial.
God’s justice is better than human’s because God is the standard for good so Uriah is no exception to someone that God allowed to be murdered like with Cain, Jesus, Steven and others. There is case law in the Bible where God executed the offspring of sinners such as in the flood, Sodom and Gomorrah, Amalek and others. If there is one thing David had learned from reading God’s law was that his conduct would affect the life of his offspring. So David was to blame for the death of his adulterine son.