Okay, I had some time to test this. With the charm equipped you sometimes see the particle effect that would suggest the mob has been "converted" to your side, but it keeps attacking you.
On Fabric you can convert hostile mobs as expected, but I can't seem to make a polar bear (i.e. a neutral non-enemy mob) attack something else this way.
[edit] Now tracked as issue #4561.