Confusion with enemy attack element vs skill element

So in the database, for enemies there is an "Attack Element" trait. But also in skills, there is an "Element" thingy near the damage formula box. So which one of these takes priority?
Enemy attack element overrides any element settings for standard attack. It doesn't override the animation though, so it will use the blunt animation by default. Skills use their predefined elements.

Original thread: https://forums.rpgmakerweb.com/threads/confusion-with-enemy-attack-element-vs-skill-element.82668/