Context Word: avoid. 
Question: When it came to failing marriages, PersonX excelled in their marriage while PersonY got divorced because _ learned avoiding techniques to stop saying stuff they would later regret. 
Answer: PersonX
When it came to failing marriages, PersonX excelled in their marriage while PersonY got divorced because _ failed to learn avoiding techniques to stop saying stuff they would later regret.