The poison pill provision and Elon's takeover are not mutually exclusive. It's in the board's best interest to gain maximum leverage over Elon. A poison pill puts the board in a better negotiating position in discussions with Elon allowing them to get better terms. Once terms are agreed they are free to repeal the poison pill.