The 787 is definitively better than the A380 (spec wise and personal experience wise) for cabin pressurization and humidity, but I’ve not flown on the A350. As it turns out, the A350 specs out better on both air quality measures than the 787 (just looked it up) and professional reviewers agree it’s better.