Apple has put a ton of effort into optimizing software to squeeze more out of less ram. They also have operating system level features like compressed ram.
The whole implied argument about hardware longevity is because software bloats. A responsible thing would be optimizing software for power and resource usage.