Or vice-versa.
I bought a 27" i7 iMac in 2017.
The processor is completely outdated and no longer supported by MacOS.
The 5k screen is as good as anything available today for a reasonable price - it certainly holds its own with the more affordable third-party 5ks. The Studio Display is a little bit brighter and that's about it. If it had a DisplayPort or TB input it would be a perfect companion to a new Mac Studio... but it doesn't.
(Actually, even the computer part would be more useful if I could separate it from the display and plug it into the aux input on the third-party displays I'm using with my Studio).
Seriously, if you want a cutting-edge display today it's probably still going to be decent in ten years' time. Why get one irrevocably tethered to a computer that will be falling behind after 3-5 years? If it turns out that you're still rocking your M4 Mini in 5+ years' time, that's great, but why lock yourself in?