Your misunderstanding and misapplication of scripture is the problem. Of course scripture does not contradict itself.
You’re projecting. An unchanging God does not abolish His law or its punishments.