Exactly right. It’s a silly conundrum.
Just because there is sin in the Bible that doesn’t mean that the Bible condones sin.
Sinners (i.e., all of us) have the sin virus. It follows that sin is everywhere. Slavery is a sin in itself; but it is a by-product of inherent sin.
Does the Bible condone leprosy? No. But does the Bible condemn it? Again, no. It is a part of the human condition and the Bible gives a work-around for it. Same with slavery.
RE: Does the Bible condone leprosy? No. But does the Bible condemn it? Again, no
I would not go that far in making this parallel.
Someone being stricken by leprosy is a tragic condition which he did not freely choose ( just an innocent person coming down with the flu or Covid-19 or cancer did not freely choose to have it ).
But one can FREELY choose NOT to enslave another person, or even buy a slave, or if one inherits such a slave, one can FREELY choose to set him free.
The two are simply not comparable.