The M1 Mac mini is a nice choice if have a good monitor to use with it and a keyboard, the iMac is also a good choice. Tough decision between the two really, I am sure they will both cover your needs very well.The screen of a 13" MacBook is too small. I am looking at a windows laptop or the M1 mac mini with 16GB of ram or the new Imac with 16GB of ram
The iMac is superb with a great monitor, however the Mac mini is just as good and if you get an average monitor you may have a bit of money left over, but it will be about the same price as the iMac if you get a nice 4k monitor to go with it.
Personally I would go with the iMac, as it has a decent sound system also and a webcam.