A CNAME cannot sit at the root of a domain, the bare example.com, because the root also needs records such as MX and NS. For the root, use the A record a service gives you, or a provider feature called ALIAS, ANAME or CNAME flattening.
A host name with a CNAME cannot hold other records. Remove any old A record on the same name before adding one.