No writer of a portion of the Bible was perfect. It was the direct and miraculous operation of the Holy Spirit that what they wrote is without mistake.
Accordingly, one race is neither superior nor inferior to another.
Thus, races arose from an original coding which God pulled out as needed for adaptation to the environment.
Time is not eternal but was created by God at the beginning.
Any concept of one person being superior to another can lead to racism.
Sex is not sinful, but sin has perverted it.