Comparison of intense-field ionization of diatomic molecules and rare-gas atoms