I would get the M2. Disclaimer, I have neither, but have watched a lot of M2 Mac Mini reviews. Many say the bluetooth in the M1 had constant dropouts, and the M2 model seems to have fixed that. Also Wifi 6E, maybe you don't need that now but it's nice to be future-proofed. Lastly, resale value. M1 models will probably start dropping in price faster when the rumoured M4 models get released.