In this answer 2, @colesbury states:

Most other in-place indexing functions (like index_add_) have undefined behavior for duplicate indices.

Is this still the case?
In my test, it worked fine. Can it be relied upon or does it depend on other factors?
The documentation is quiet about this.