There are many hard issues in the Old Testament.
Lot, who was considered a righteous man in OT Times, chose to offer his own daughters for immoral purposes in order to save his presumably male guests (who were actually angels in disguise) from being used for immoral purposes yet most people do not think that Genesis should be excluded from the OT Scripture Canon because of Lot’s decision.
Genesis 19:5-8 And they called to Lot and said to him, “Where are the men who came to you tonight? Bring them out to us that we may know them carnally.”
6 So Lot went out to them through the doorway, shut the door behind him, 7 and said, **“Please, my brethren, do not do so wickedly! 8 See now, I have two daughters who have not known a man; please, let me bring them out to you, and you may do to them as you wish; **only do nothing to these men, since this is the reason they have come under the shadow of my roof.”
The Old Testament is to be used to show the history and the prophecies concerning God and His love for His creation and His plan for the salvation of mankind and since we are under the New Covenant now, praise God, we should not be overly concerned about ancient Old Testament morality compared to New Testament morality except to thank God that we were born in the NT time period and not in OT time period.
God revealed Himself to mankind slowly over a period of thousands of years and so He always justly judges each person according to what had been revealed/known about God and His commands during each person’s own lifetime. God judges each person’s free will choices using this standard Luke 12:40-48.
What we need to understand right now is that in order for us to inherit eternal life, we must obey His commandments. This is His Word to us right now in the 21st Century.
Matthew 19:16-17** Now behold, one came and said to Him, “Good Teacher, what good thing shall I do that I may have eternal life?”
17 So He said to him, “Why do you call Me good? No one is good but One, that is, God. But if you want to enter into life, keep the commandments.” Hebrews 5:9