They both had free will to choose to believe in Christ. One did not.
Only by the regeneration of the Holy Spirit can men believe and be saved.
We are not saved by our good works, but by God's free, unmerited, predestined grace through faith alone. Ephesians 2.