This verse is bigger than the translations. If you ask me which is right, I have to say all of them. The Hebrew word hesed (חֶ֔סֶד) doesn't translate to one English word. Knowledge of God means to be acquainted with God as your are with family or friend.
For I desire goodness, not sacrifice;
Obedience to God, rather than burnt offerings.
(Hos. 6:6, JPS)
For I desire steadfast love and not sacrifice,
the knowledge of God rather than burnt offerings.
(Hos. 6:6, ESV)
כִּ֛י חֶ֥סֶד חָפַ֖צְתִּי וְלֹא־זָ֑בַח וְדַ֥עַת אֱלֹהִ֖ים מֵעֹלֹֽות׃
(Hos. 6:6, MT)
Senses of חֶ֥סֶד
Note these related verses.
He has told you, O man, what is good;
and what does the LORD require of you
but to do justice, and to love kindness (חֶ֔סֶד),
and to walk humbly with your God?
(Mic. 6:8, ESV)
Thus says the LORD: “Let not the wise man boast in his wisdom, let not the mighty man boast in his might, let not the rich man boast in his riches, 24 but let him who boasts boast in this, that he understands and knows me (וְיָדֹ֣עַ), that I am the LORD who practices steadfast love (חֶ֛סֶד), justice, and righteousness in the earth. For in these things I delight (חָפַ֖צְתִּי), declares the LORD.”
(Jer. 9:23–24, ESV)
Moses said to the LORD, “See, you say to me, ‘Bring up this people,’ but you have not let me know whom you will send with me. Yet you have said, ‘I know you by name, and you have also found favor in my sight.’ 13 Now therefore, if I have found favor in your sight, please show me now your ways, that I may know you in order to find favor in your sight. Consider too that this nation is your people.” 14 And he said, “My presence will go with you, and I will give you rest.”
(Exodus 33:12–14, ESV)