Unless your RAM requirements aren’t being met, the M1 is good enough. The M2 is the best of the line so far because the M3 handicapped memory bandwidth for the only use cases that need so much memory.
M4 is tempting and a decent time to upgrade if you’ve had an M1 since 2020 or 2021, but its exact specifications aren’t know for all lines yet.