Yeah but hit events NECESSARILY include the depenetration of the two colliding bodies.
An animation which drives a capsule or box collider through an enemy cannot produce OnHit events, by definition.
It might be possible to, instead of using attachment, sweep the collider shape to a new location each tick, but even if this accounted for rotation properly (and it doesn’t, sweeping never does) the shape would get stuck on the enemy and break collision detection thereafter, which is not intended behavior.