I honestly don't think Musk affected 2024 to any real extent. Look at how much narrower Harris's loss was than other incumbent losses in 2024. If anything you could make the argument Musk tanked Trump's lead like Trump tanked Poilievre.
Democrats running a candidate that lost their only attempts during a competitive primary. As well as that candidate being unable to read the room and saying they'd do the same economic decisions as the unpopular _incumbent_ Biden. And they still were within 1% of votes!