I bought a 10-core iMac Pro, and it's a screamer - super-fast and super-reliable even after 16+ hours of use a day. So I don't regret that choice, even if it was the most expensive computer I've ever bought.
A 32+8 core M1 for a less insane price sounds like an easy upgrade choice. The lingering question is memory. 16GB won't be enough.