Bad M&As happen all the time. Good ones are the exceptions not the norms.
"Companies" are groups of people, and their leadership.
What the leadership wants very often has nothing to do with the company's long-term future.
This is all observable behavior happening all around us.