IMO Lemmy/PieFed is safer to run because the community mods will delete anything illegal, which will delete it for you, too. About 5 instances host 95% of communities worth joining so it's easy for us to coordinate defense.
Mastodon is thousands of instances and more wild west. Bad stuff can come from anywhere.