(Disclaimer: I use Gitea daily for work and Codeberg daily for personal stuff. I prefer Codeberg)
Gitea is developed by a for-profit organisation while Forgejo is developed by a non-profit.
Ability for rug pull is much greater for gitea imo. Gitea (organisation) already develops non-foss software to sit on top of Gitea (software). Gitea requires copyright attributions for contributions so is more able to change the Gitea license to something non-free in the future.
Codeberg can make up whatever rules they want for their Forgjo instance but you can do what you like on your self-hosted instance so I dont think that the governance of codeberg should concerning for self-hosting.
If Forgejo somehow enshittified, I would expect a popular fork immediately. If Gitea enshittified, I expect most people who would have forked already went to forgejo