Is higher prestige for undergrad worth the cost if I plan on doing a PhD?

They haven’t really shown a preference to either one since the cost for them would be fairly similar for each school (I’m sorry if I’m making the financials confusing but the only true difference in cost would be on my end).