Forge has been the main choice of people who create mods for Minecraft for a long time. In 2018, a new mod loader and API named Fabric was created. Since then, these two mod loaders have been compared to each other in terms of features. In this article, I will explain how they differ.
Forge was created in 2011. It solved the problem of mod inter-compatibility, meaning that mod authors could write code in a way that would not conflict with other mods's code. Forge has become a feature-rich API.
Fabric's design differs from Forge. It is modular and is able to target Minecraft snapshots, allowing it to update faster. Its API is not as rich as Forge's, instead it relies on Mixins to provide modders with ability to implement desired features.
There exist Fabric-exclusive and Forge-exclusive mods, but many mods exist on both loaders. Ability to develop mods on both loaders usually depends on authors' amount of free time or limitations of the API.
I as a modder prefer Forge over Fabric, because Forge provides more features and is very versatile. But I do have mods that exist on both loaders for player convenience. Also my computer is not low-end.