Systematic comparison of the discrete dipole