When UBS Group AG acquired Credit Suisse in March 2023, its board of directors thought they were doing their duty.