The space amoeba from "The Immunity Syndrome" would swallow them both without a burp. Nomad destroyed all life on planets, leaving behind the planets. The DM destroyed the planets, leaving behind the stars. The space amoeba swallowed whole star systems, and had its own energy damping/subspace interfering field, as well.
Yet the Enterprise
took out all of them. Don't pick a fight with Kirk and company. (Actually, Nomad, Norman, Landru and the M5 all met the same end—Kirk talked them under the table.)