Both add features to Minecraft. The difference is where they run and what they can change.

PluginsMods
Runs onThe server onlyThe server and each player's game (usually)
Players need to install anything?No, they join with normal MinecraftYes, the same mods and mod loader
Server softwarePaper, Purpur, SpigotFabric, Forge, NeoForge
Can add new blocks, mobs and items?No. They work with what's already in the gameYes
Typical usesRanks, economy, land claims, minigames, anti-cheat, teleports, chatNew dimensions, machines, magic, tech, big content packs
Where they goplugins foldermods folder
Where to get themHangar, Modrinth, SpigotMCModrinth, CurseForge

Which should I choose?

Can I use both? Not easily. Plugins don't load on Fabric, Forge or NeoForge, and mods don't load on Paper. Some "hybrid" server software tries to do both, but it's often unstable. Pick one. Many popular plugins (like LuckPerms) also have a mod version.

Server-side mods. Some Fabric mods only run on the server, such as performance mods like Lithium. Players can join those servers without installing anything, but you still need a Fabric server.