Can discount codes and COD options be automatically adjusted?

do we have an option to automatic remove the COD once the customer puts in the discount code.

Or the discount code should be disabled once the customer opts for COD or vice versa

please help

No, Shopify’s standard plans do not have that options.

All payment methods are available for all customers regardless of the discount etc.