But why did Abraham's god need to discuss the number of righteous children in Sodom with Abraham, and why wasn't it an omniscient or omnipresent type of god (Gen 18)?
And since it wasn't an omniscient god then how would that particular god know "the point of No repentance"?
And why didn't Jesus return within the lifetimes of his contemporaries as they expected?
Prophecy (Daniel's) pointed to the first century and that is why those first-century people were in 'expectation ' of Messiah coming - Luke 3:15
Jesus could have basically appeared at any time, because the ' return ' would come at God's future time for him to act again.
In other words, the passing of time is allowed so that we could be born and think who we would want as Sovereign over us.
The passing of time would allow time for all nations of Earth to hear about God's kingdom (Matthew 24:14; Acts 1:8)
By the 'reading of hearts' then God could discern what we can't, that is why it is wrong to impute a bad of wrong motive to others.
To me it was Abraham who needed to discuss.
Seems as if Genesis 18:20-21 is about investigation: Getting to know through investigation the truthfulness of the matter at hand.
Abraham found it unthinkable for God to destroy the righteous with the wicked - see Genesis 18:25
God shows his patience with Abraham and did Not mind all of Abraham's questions.
God is Not omnipresent but God has a home location as per 1 Kings 8:30,34,39,45,49 ( however No ZIP code is listed )
There are things that God can Not do - God can Not lie - Titus 1:2; Hebrews 6:18