What's the difference between Lemmy and Mastodon? - eviltoast

Both are federated right? Getting a bit confused - are they interchangeable? Can I view lemmy posts/communities in Mastodon? Similar to how I can view lemmy.ml content with a lemmy.world account?