Improve performance of detail::or_.