From the "dismiss spirits" menu that you were in there's a sorting option for "By Number Obtained (High to Low)" which makes it easy to dismiss all of the duplicates.

![pic of the menu](https://i.imgur.com/cxSWDxB.jpg)