The first line is 19:1 word for word. The second line changes the comparison.
Quick answer
The same trade the book offered at 19:1, aimed at a different target. There the alternative was a fool; here it is a rich man.
Read both lines
Putting the two verses side by side shows what this one is doing. 19:1 set the man of integrity against one "perverse in his lips, and is a fool," so the contrast was character against folly. This verse sets him against one perverse in his ways who is rich, and the concession is explicit: though he be rich, granting the wealth and refusing to let it settle the question.
That small change makes this the harder saying. It is easy to prefer integrity to foolishness, since nobody envies a fool. Preferring it to money is the actual test, and the verse states the preference without arguing for it, which is how a "better than" saying works: it names the trade and lets the reader notice which way they lean.
Related: Proverbs 19:1 · Proverbs 19:22 · Proverbs 16:8 · Proverbs 28:11
New King James Version®, Copyright © 1982, Thomas Nelson. All rights reserved. Full copyright information. Scripture provided by API.Bible.
Go Deeper
If this verse has been used to put weight on you that it was never carrying, ask about it directly.