My general problem with XY (especially as it went on) is that it tried to insinuate having really in depth development and introspective, despite that nearly every time they had a scenario that could go deeper into a character or even just remotely put them out of their comfort zone, they chickened out and had some generic plot device interrupt so things can go back to idealistic and they can still feel like winners, winners, winners. It's maybe why I thought the first season, which just focused on the light hearted concepts it could better handle, was better balanced.
Cases like Florges and Alain's arcs could have been a developed case of what you are in the dark and a character betraying their moral fibres when in a desperate situation, but instead they scapegoat it all onto a more generic eviller bad guy "tricking them" (despite them clearly already knowing their actions have some grey qualities) and them getting a get out of jail free card. Even for the bad guys, they completely abolished the more sympathetic tone of Lysandre from the games, insisting any character that couldn't be redeemed had to be a big ball of hate. Same for AZ being completely adapted out, being a very complex character who similarly committed atrocious deeds under pressure but had to feel the consequences and remorse for years as punishment. The anime has never really been big on going into depth with highly flawed characters but I think XYZ that wanted to be a darker story, was ironically the most whitewashed and bland about it.
SM has definitely suffered from this as well, especially in regards to adapting from the games, but it has at least approached the 'baby steps' that even XY was completely unwilling to do. Comfort zones if anything have been a recurring theme with some of the main cast, even many that don't really develop out of them still have them treated as a foible.