If you want your certificate to be valid for the rood domain AND the www hostname, then you should use the www.example.com
version.
You can also purchase a wildcard, but unless you need to support any extra subdomain, the cost is not worth in this case.
More details are available in the support page Selecting the Certificate Hostname.