Remove ForceAttemptOAuth2 and modify SetLegacyMode to preserve legacy behavior. Related: https://github.com/oras-project/oras-go/issues/972