In terms of toxicity, X is way beyond 4chan at this point. But the style is very different. Algorithmic vs organic, retweets vs (You)s, anonymous vs semi-anonymous and much more. All the way to how replies are visually presented which is awful on Twitter and it's clones.
Honestly, I've had more positive interactions and learned more on 4chan than I ever have on Twitter. I wish the few tech people I care about who are still on there would just move (to clarify, move anywhere, not to 4chan obviously).