If that’s all I needed was the occasional way to build and test iOS apps, as much as I would would hate it, I might buy a Mac Mini. On the other hand, I might get a low end iMac.
the last update to it (3 years ago) was borderline insulting, the model before had a removable base where you could upgrade the ram yourself. The last update they did placed a metal sheet in this area. https://i.imgur.com/TXocZ4d.jpg