Social media run by corporations based on algorithms designed to maximize engagement was a mistake. It may, however have been inevitable.
By that I mean I'm not sure a clever person with a time machine could go back 25 years and prevent it from having roughly the popularity and influence it does now even if someone with a quarter century of future knowledge tried to outcompete it with something that isn't centralized or optimized for engagement. Those traits were evolutionary advantages over that time period.