I’d suggest a 4 to 6 terabyte hard disk drive (HDD), as you don’t (usually) need the speed of an SSD, and as you will want storage capacity sufficient to maintain some depth of Time Machine (TM) backups.
I’m working with a mix of NAS storage units (with TM support) and Seagate external HDDs. NAS isn’t cheap, but adds flexibility and hardware data protections, and can consolidate multiple TM backups into fewer boxes, and with fewer or no wires which is particularly handy for portable Macs.
For your iMac usage, a ~USD$120 4-6 TB USB HDD will probably be the best trade-off.
Smaller disks used as Time Machine targets can tend to have issues when they get close to full, too. TM does not “like” big files in small targets, and can have difficulty pruning backups with a relatively too-small target and relatively too-big newly-arriving files.