If iTunes or Music show multiple instances of an artist or an album then what generally works is to select all related tracks and use Song Info to add say a trailing X to each of the fields that the tracks should have in common:
For an album; Album, Album Artist, and Artist (if artist is the same for all tracks) *
For an artist; Album Artist (and Artist unless there are guest/featured artists listed which should not be changed)
Apply the change which merges things together, then remove the excess characters. Occasionally it may help to close and reopen the app between the two renaming operations. Part of a compilation should also be set consistently.
* If tracks are to be synced to a non-iOS device there should be a common Artist and/or the album should be set as a Compilation.
Use the songs view and display the fields Album, Sort Album, Album Artist, Sort Album Artist, Artist and Sort Artist side by side so you see whether or not it is appropriate to edit Artist and if sort values could be causing any further problems. See Grouping tracks into albums for more help if required.
One further tip for really stubborn duplicates. At one point I had three lots of Various Artists in the artists view of my iTunes Match library that wouldn't respond to the usual trailing X treatment. What I found worked was to add the trailing X to start with, but then with each group that iTunes wanted to keep separate start typing a value and let it autocomplete from say Var... to Various Artists. Picking from the autocomplete lists seemed to work when pasting/editing the whole value didn't.
With purchased tracks it seems that sometimes the official store version of the metadata can occasionally be reapplied, and of course it might not happen consistently to all tracks of the same album, just to keep things interesting. Hiding the purchase from your purchase history can ensure that your version of the metadata for that album doesn't get modified. See Hide and unhide music, movies, TV shows, audiobooks, and books - Apple Support.
The .mp4 extension is typically associated with video content while .m4p is used for DRM protected media. Whichever it is you probably cannot change it. If you have the Apple Music service it is potentially possible that you added an album to your library from the service before deciding to purchase it, but your library has DRM files that you've never removed and then redownloaded.
tt2