Librewolf does that by default, among other things. And as thanksforallthefish mentioned, in settings you can whitelist some pages to prevent cookie deletion, if you want to remain logged in.
LibreWolf is a fork from Firefox. It is a much better alternative for privacy, and deletes cookies by default. You can also configure which pages you want to maintain cookies, e.g. for automatic login (if that's something you want)
thank you guys. Besides the updates size being so large, which is indeed annoying, my biggest concern is its effect on performance. The game looks very ambitious and computationally intensive by itself, so i am curious about how will it run when adding this extra layer of computation. I guess, as always, it is a good idea to take my time and see the reviews before jumping into buying it.
My personal recommendation that has been working for me (although there are other options that for some people might be better)
NewPipe for videos
Metrolist for music and podcasts