What United could have done differently

Was there a better way to handle the situation? Yes, there was. And airlines do it all the time.

Play