That's not what the bible means by grace, and in fact is the very attitude that the Pharisee had in this story. Instead, God's Word teaches us that grace is where God acquits the guilty because Jesus took the rap for them. God declares us to be righteous on the basis of Jesus' righteousness, not ours, not even the righteousness that God produces in us. Well, what about the tax collector. It's hard for us to understand exactly how hated a tax collector was.
Nobody likes paying taxes.
But the taxes WE pay are collected by public servants who for the most part do it honestly and are forced to do it honestly by law. The taxes they collect are used by the government, in theory at least, for the common good. Not so in first century Palestine. The taxes were collected to send to Rome, the foreign, heathen, occupying military power. The tax collectors were traitors to Judaism, cheats and extortioners, taking more than the legal amount and pocketing the rest.