Yes, you can either deploy the AG as a container via the operator, or just install one on another VM/Host.
It’s not really about better/worse, just depends on what works best for you.
The only difference between the two is that the AGs deployed by the operator currently have a limited set of functionallity:
- oneagent traffic routing
- kubernetes-monitoring (k8s API Integration)
- dynatrace-api
If you need other functionality, e.g. extensions, you need another AG outside the container anyway.