If you need RAM more than you need compute maybe? The M1 Ultra was much slower than the 3090, and by all accounts the 4090 made a significantly bigger step forward in performance over the 3090 than the M2 Ultra does over the M1 Ultra.
If the M2 Ultra can double the performance of an M2 Max it will be on par with the 4070ti in compute, or slightly ahead of a 3090. But we'll have to wait for benchmarks to see.