How much disk space are you using on the current 2T iMac?
Down sizing is never easy and you generally end up between a rock and a hard place.
IMHO you need room to grow and the best thing to do,
is reduce down to around 350GB before migrating to a 512GB model Mac mini.
or..... to reduce down to around 750GB before migrating to a 1T model Mac mini.
Anything else requires moving your larger Music, Movies and Photos Libraries off to and external drive.
Then using a second external drive to backup the Libraries and/or including them in your Time Machine backups.
At this point, you will have to weight the connivence and price difference, between getting the Mac mini with more internal storage space or having to purchase 1 or 2 more reliable external drives to hold the overflow.