As I recall, the 787 was launched to compete with the A330 family, and the A350 was launched to compete with the 777 family, so comparing 787 vs A350 isn’t exactly apples with apples.
It is interesting when you look back at the incremental growth in 767 to A330 to 78X in particular, and then compare that to the shrinking of the top end of the market with VLAs going the way of the dinosaur. 777X is on shaky ground with all the delays and the current economic climate, A330neo also in trouble. 778, A35KULR for project sunrise and A350neo with the new Ultrafan are all on the backburner, and we must not forget the widebody market was already soft for years before COVID.
It was already looking like Airbus had the golden goose with the 321neo variants pre Covid, and that might be even more true afterwards. The A220 faces scale of production costs, and we already know about Boeing’s problems. The 320 family might be the only commercial passenger jet making any money for the manufacturer for a few years to come.