BYU is a top notch undergraduate institution. Utah is a more traditional research university. It’s an apples to oranges comparison.
I did computer science. My undergraduate education was great. If I compare it to what I would have gotten in the same field where I did my graduate work (Illinois), I’d give the edge to BYU. There is no comparison for graduate school though.