Yes, takes 2 to do these things. It is called sexual immorality. A true rape has a definition and description given by God in the OT.
If it was not a rape, then the punishment for both is death, that has not changed in the New Covenant, but only the saved are forgiven, only they have their sin put away.
David had his sin regarding Bathsheba put away, David demonstrates repentance, which God allowed for him, but someone like Esau found none even through he sought it with tears, he was not granted repentance. Of Esau, God said that 'Esau I hated'.
2 Samuel 12:13
So David said to Nathan, “I have sinned against the Lord.” And Nathan said to David, “The Lord also has put away your sin; you shall not die.
Hebrews 12:15-17
15 looking carefully lest anyone fall short of the grace of God; lest any root of bitterness springing up cause trouble, and by this many become defiled;
16 lest there be any fornicator or profane person like Esau, who for one morsel of food sold his birthright.
17 For you know that afterward, when he wanted to inherit the blessing, he was rejected, for he found no place for repentance, though he sought it diligently with tears.
Malachi 1:3
But Esau I have hated, And laid waste his mountains and his heritage For the jackals of the wilderness.”