Tags vs categories?

I’m confused: I’d like to hear some thoughts on tags and categories. I don’t know how to ‘tell’ the difference. Does anyone have some use cases?

Personally I use categories to describe the specific area of the project, then tags to describe what it is - e.g.

Example categories: Main UI; My Cool API; My Other Cool API; Backend code; Infrastructure
Example tags: Bug, Enhancement, New feature, Data/Config

From the category it’s easy to see all work available for a given component (filter by “category:Main UI” to get everything that applies to that section of the code)

From the tag, I have a quick idea of what the change is - a bug, adding a new feature, etc

you can consider categories as primary tags