iTunes iCloud purchase music duplicated in my Mac's library
I'm having a very annoying problem where purchased songs in my iTunes library are showing up as duplicates of my local copies of those same purchased songs:
You can see that the duplicate song in iCloud has the cloud download icon next to it. When I examine the info for these files, both show as having been purchased from the iTunes store.
When I try to delete the version without the cloud download icon, it warns me that the song will also be deleted from my iPhone which syncs with this Mac.
If I try deleting the version with the cloud download icon, it asks if I'm sure I want to hide this song, and says the song will be hidden in my iTunes purchases list.
Normally I'd just delete my local copies and download the iCloud versions, but my local copies have play counts, ratings, and other metadata I'd like to keep.
I'm not sure how this problem occurred, but iTunes seems unable or unwilling to recognize that my local purchased copy is identical to the copy in iCloud. Any ideas for solving this?
MacBook Pro Retina