Free will doesn’t depend on external conditions; because it is free. If it really depended on external conditions; it won’t be free will at all.
So, as being good is a matter of free will, it doesn’t depend on external conditions like place of birth, race or gender.
Therefore, we can only have easier for a person to make mistakes and tougher for the person to make mistakes.
For example, if all women are bad, you can’t blame them being bad for an external condition like the men being rich or even, them being women. They may sin because of external conditions, but they aren’t bad because of external conditions.