This is why you are confused. There are no contradictions... only misunderstanding readers.
Really?
“On six days work may be done, but the seventh day shall be sacred to you as the sabbath of complete rest to the LORD. Anyone who does work on that day shall be put to death.”
So if I work overtime, who’s going to kill me?
“When a man sells his daughter as a slave, she shall not go free as male slaves do.”
Should I advise my brother that he’s got a revenue stream he didn’t know about?
“and the pig, which does indeed have hoofs and is cloven-footed, but does not chew the cud and is therefore unclean for you. 8Their flesh you shall not eat, and their dead bodies you shall not touch; they are unclean for you.”
I like bacon