No person shall be convicted of a public offense which is necessarily included in another public offense of which the person is convicted. If the jury returns a verdict of guilty of more than one offense and such verdict conflicts with this section, the court shall enter judgment of guilty of the greater of the offenses only.
Iowa Code § 701.9
See R.Cr.P. 2.6(1)