Why did Jesus say "Truly, I say to you, only with difficulty will a rich person enter the kingdom of heaven.
Again I tell you, it is easier for a camel to go through the eye of a needle than for a rich person to enter the kingdom of God.”
I don't believe nor have I said that goodness has anything to do with it. I have said it was the gospel alone that enables us to believe. Those who do not believe have the same enabling gospel and the reasons they reject God are many. With the rich ruler it was because of his immense wealth. For the lawyer in Luke it was his pride and need for self justification.
God does choose who He wants to save, which is those who believe.
…and that from childhood you have known the sacred writings which are able to give you the wisdom that leads to salvation through faith which is in Christ Jesus. All Scripture is inspired by God and profitable for teaching, for reproof, for correction, for training in righteousness;” -2 Timothy 3:15-16
1Pe 1:23 since you have been born again, not of perishable seed but of imperishable, through the living and abiding word of God;
Jas 1:21 Therefore put away all filthiness and rampant wickedness and receive with meekness the implanted word, which is able to save your souls.
Rom 1:16 For I am not ashamed of the gospel, for it is the power of God for salvation to everyone who believes, to the Jew first and also to the Greek.
The gospel is the saving factor.