I have no opinion on its ability to replace Twitter, but the federated nature of Mastodon means that an instance can disconnect from the instances that are hosting spam accounts, much the same as many instances have disconnected from servers that host racist and alt-right communities and accounts.