I think this is a good example of opportunity cost, as it shows that while buying renting a house may give you more money to spend on things at the current time, buying a house will decrease the amount of money at that time, but will give you more in the long run.