The Twitter board did not have a choice and were obligated to sell the company since it was in the best interest of the shareholders. If they hadn't sold the company because they didn't like Elon or whatever, they would likely have been sued by the shareholders.