One is element based, the other is character. Both does different thing in the attack formula, but it's best if you can get both as close as possible.
If your weapon grid is weak, character attack will be better than elemental attack. If your weapon grid is over 100% assault, then elemental attack will be better than character attack.