[libc++abi] Split strcmp and non-strcmp dynamic_casts (#230762)

The `strcmp` path is only selected for at the top of the call chain, but
causes significant amounts of overhead, since all functions have to
check for it whenever they compare for equality. Furthermore, the strcmp
case is almost never used, since there has to be a user error detected
for it to kick in, and on most platforms that branch is completely
disabled. By instead having separate virtual functions for the two cases
the performance can be significantly improved. This also removes the
code entirely if `_LIBCXXABI_FORGIVING_DYNAMIC_CAST` is not enabled.

GitOrigin-RevId: ca0405897f139d34565f92066c3148a36372d882
2 files changed