It's a huge sustainability issue - apple try and greenwash their business with recycled aluminium and "responsible recycling" for stuff that gets traded in, but upgrading RAM or similar to get another couple years use out of a system is massively better in terms of reduction of environmental impact than either of those options. To quantify:
Producing a laptop computer requires 3-4GJ of energy
[source]. The source is from 2001; I'd love a more recent work to improve this analysis. On one hand you'd hope production has improved efficiency, on the other hand 5nm EUV silicon isn't easy to make. I'd assess it's very likely that a modern PC requires more energy to produce. I'll also assume that the RAM is 20% of that energy, so upgrading the RAM adds 20% to the manufacture consumption.
Assuming 500g of aluminium in a macbook (that's half the weight of a macbook air; so this is conservative in apple's favour), that gives ~7.5MJ to produce from 100% recycled and 150MJ from virgin material.
Upgrading the RAM helps get more life from a PC, and I'll use apple's own release timeline to quantify this. Macbook air started with 2 GB RAM in 2008, upgraded to 4 GB in 2012, and hit 8 GB in 2017. From this we can infer that apple agrees that macbook air minimum ram gets too low 3-4 years after release (N. B. - it's been 4 years since 8 GB was introduced). From this, I'll assume 4 years typical use and doubling the RAM gets you another 2 years (eventually the processor gives out).
Finally for energy use during use, I'll assume 10W average and 8 hours/day 5 days/week. That's 7.5 MJ/year
Combining these together:
A laptop with recycled aluminium and non-upgradable RAM averages 880MJ/year across manufacture & use (28W)
Changing that to virgin aluminium ups the energy use to 920MJ/year (29W)
Giving it upgradeable RAM reduced the energy use to 710MJ/year (22W)
Letting users upgrade RAM saves 5x more energy than using recycled aluminium. I suspect the macbook uses less than 500g of aluminium, making the numbers even more one-sided
On package RAM is acceptable in a phone, as basic functions are lighter on hardware than windows and you physically can't fit a single SODIMM in there, but the new macs are very much just a non-touch tablet on a permanent stand