If it contradicts scripture it is wrong, if it covers precisely what is covered in scripture with precisely the same depth and nuance, it is redundant.
But there are lots of other cases. E.g. abortion falls under “thou shall not kill.”
The immaculate conception contradicts Scripture as does the claim Mary remained sinless.
Exodus 21:22
"If two men are fighting, and in the process hurt a pregnant woman so that she has a miscarriage, but she lives, then the man who injured her shall be fined whatever amount the woman's husband shall demand, and as the judges approve.