The difference is actually small. By default a cup at Starbucks is much more volume than a default Nespresso capsule, like 2-3 capsules, so you can't compare 1 Starbucks cup with 1 capsule. Then the main thing that makes Starbucks "worse" is energy to operate the store, assuming it'd close down if everyone would use a Nespresso instead in the home/office. And if you're in California in the summer and all that energy is effectively renewable, that difference too disappears. At that point they're very comparable. As for the cups ie. containers, one takeaway cup vs 2-3 capsules are pretty similar. If you ignore the store part then Nespresso was never meaningfully better.
And if you put (cow) milk in your coffee, that dominates anyway so the above can be ignored.
But really just don't use either. Go to a local coffee place and use generic brand capsule machines. Starbucks coffee is crap, if local coffee places are more expensive (which is rare) you might as well get coffee from McD's or 7/11, it isn't any worse. If you just want sugary dopamine, not judging but then we're no longer talking coffee.
Actually it's the commute that dominates. Unless you're walking to Starbucks or driving a solar-powered EV