Is it necessary to use Mailgun?

If you want to use your domain for both email and Discourse then set up a subdomain for Discourse. I would recommend doing that anyhow in case your needs change in the future.

In which case use your root domain (@) for gsuite and add MX records to a subdomain for Mailgun.