A/B testing can be done with feature flags. Gradual rollout, specific customer opt-in, and so on.
Gradual rollout and specific customer opt-in to certain features can certainly be done with feature flags, I wouldn't call that A/B testing unless you're running experiments and reaching a conclusion that A is better than B (or vice-versa).