Ezekiel was in exile with stubborn, rebellious, obstinate Israel. At least that's what God called them [2.3-4]. They didn't want to hear what Zeke had to say. I wouldn't either.
Ezekiel was telling them that they were whores who, spiritually speaking, "spread your legs to every passer-by to multiply your harlotry" [16.25]. He even told Israel that they were so okay with prostituting YHWH's covenant love that they quit charging for their whoredom and gave gifts to their lovers instead [16.33-34]. These are powerful words. If they are offensive it is because you don't understand the gravity of your disposition before apart from His kindness. I'm in this boat. But still, this is a metaphor.
The thing that Ezekiel says that really gets me is not a metaphor or word picture, but a bare reality. Maybe that is why it stings so sharply. It could also be so because it is aimed right at leaders and preachers. Israel's "priests have made no distinction between the holy and profane" [22.26] and her prophets see "false visions and divining lies, saying 'Thus says the Lord GOD,' when the Lord has not spoken" [22.28]. This is why YHWH pours out His indignation and anger. They have long deserved it!
He will remember His covenant [16.60]. And He will be king over Israel [20.33]. YHWH will purge rebellion and transgression from His people [20.38]. He will send His servant shepherd David [34.23] to give new hearts of flesh where hearts of stone once were [36.22-27]. Dry bones will live again [37.3-14].