Upvote:6
There is no contradiction, however it should be noted that in Genesis 4:7 that is an intentional sin, and in Romans 7:20 it concerns unintentional sin.
The difference between the two is whether or not the perpetrator knows that it is a sin and commits it anyway, or does so out of ignorance or deception as in the case of Eve who was beguiled.