If you’re going to Borobudur Temple, you’re probably going to do Prambanan, too — it’s the other major temple in Yogyakarta, and another big reason why people come here in the first place. You can even buy a combined Prambanan/Borobudur ticket, so yeah, don’t fight it. You’re going to see both.
Saying “if you’re in Yogyakarta, you have to see Borobudur” is kind of like saying “if you’re in Paris, you have to see the Eiffel Tower.” Duh.
But seriously: if you’re in Yogyakarta, you have to see Borobudur. It’s amazing.