Most of reddit’s content is user generated to some extent. If there’s bad content, it’s because of people. Most of lemmy’s content is user generated. Same cause same consequence.
If we want to delve into what could be different… moderation. Made by people (aside from very far-reaching illegal stuff, on both platforms).
Conclusion: the problem is people, not reddit nor lemmy.