I don’t think Maryland is better than IU. Overall they’re probably academic peers. The Kelley school at IU is the most renowned undergrad school/program at either university, so if i had to call one better than the other, I’d put IU on top. (but that would be splitting hairs…)
So unless you feel like Maryland is just a much better fit for you, and you can easily absorb the difference in price, I’d choose IU. You can apply to both, of course.