I am unsure whether to buy the M4 Max Max Studio with 128GB ram and 500GB/s bandwidth or M1 Ultra Mac Studio with 128GB ram and 800 GB/s bandwidth.

The Max costs 4400€ The Ultra costs 3500€ second-hand

What would you buy? I am not going to use it only for LLMs but for coding, machine learning, gaming.