Text this: Comparison of the stability of discontinuous Galerkin and finite-difference methods