So God knows but he does not know
he chose based on two things
1. the death of his son for all mankind, offering redemption
2. his knowledge of who would repent and recieve his free gift, and who would say no.
Yes God knows we are such vile sinners, that’s why he came to earth to die.