Totally talking without thinking about it too much here:
The classList API makes modifications to the class property very easily.
You'd be essentially limited to one identifier in attribute selectors. You can't really select from multiple identifiers with a data attribute without doing like:
[data-hover*="foo"]
which would search for "foo" anywhere in the attribute, which could mean incorrect substring matches.
Chaining attribute selectors would be rough too:
[data-hover*="foo"][data-hover*="bar"] {}
vs
.foo.bar {}