Flag-guard the backend-agnostic ops usage if there is backend-specific implementation (#23421)