There is no ducking your questions on my part but instead willing to adapt to your beliefs (for the sake of this discussion) that there is no God and the bible is not true, therefore if that is the case it should not be used as an example, but being that you are so adamant about including a God that you don’t believe exist and bible you think is fiction…then my answer is that being that you are referring to God here as he is real and exist and did give such commands, then my answer is YES, I would listen to whatever he says to do.
Keep in mind that while you are referring to God at this time (wherever you are going with your reasoning) as being real, then this same God that gave such commands is also the same one that gave those that are following his commands gave them their inherited conscience and one’s conscience could not be greater then the one who gave them it to begin with.
Also all that you are citing in your example when referring to something that is said to have happen in the bible, since you are using as if it is a true account , then the context of everything that you are referring to should be taking into consideration.
Example from an non biblical account…you might not go out and murder someone while committing some crime but you may be in the military and your government can call you up and send you to war and you would shoot and kill any that your government and commanders deem as enemies.
In that same military setting you may also capture and confine those
that are deem fit to be even using then to work while in captivity.