Agreed this would be a good idea, as there are addons like Cookie Auto Delete that do this automatically plus additional features. Would be nice for FF to incorporate it by default.
When this will be added firefox will be much faster because it doesn't store all the cookies anymore and people don't need to login anymore like now after everytime deleting the cookies in settings. I hope firefox will get features like this to keep competing against brave and duckduckgo.