Deuteronomy 14

Deuteronomy 14:21

"You⌃ shall eat nothing that dies of itself; it shall be given to the sojourner in your cities and he shall eat it, or you shall sell it to a stranger, because you are a holy people to the Lord your God. You shall not boil a lamb in his mother's milk."
Is the law contradictory about eating carrion?

A careful reading tells us otherwise. The Exodus verse refers only to animals that are mauled by other animals and have died. Deuteronomy refers only to animals found dead of natural causes. Leviticus refers to both types and tells what to do if someone (whether native or stranger) consumes such an animal in spite of the rule against doing so. The stranger of course would have to decide whether it would be worth it to have to do the washing ritual in order to eat the animal—chances are, in their age before there was a supermarket on every corner, they wouldn't have minded.