They are both fabulous aircraft. While they do compete to an extent, they have their differences. The A350 tends to be a slightly larger plane. The range of the longest range A350 is also slightly longer than that of the longest range 787, but both can be used for ultra-long haul flights.