The A350's chemistry isn't publicly known but it's energy density and operating voltage is lower than the 787's pack which would indicate it's not the same cobalt chemistry that was quite widely known for its thermal runaway issues, Whilst not a reason to 100% not use it the pack should have come from the factory with the changes that were later made around containment and isolation.
We'll never know if the A350's pack was designed better at the start or rather in response to the 787 issues however given the time difference it's possible Airbus was intending to use a less armoured pack but quickly redesigned it after the 787 issues. It will be interesting to see how the Airbus overboard vent handles in an actual emergency


