I guess the quality here is resilience more so than immunity. I guess you can say opensource is much more resilient to enshittification.
I think Mozilla has been a good example of that but the perception has been that resilience has been crumbling for years. Without an independent business model they have been in a really terrible position from the get-go.