Mwenenzi has answered thoroughly, but I wanted to add that we found the flexible tickets on Air NZ great for this. I booked a later flight with same-day Flex and then when we arrived on time, got through immigration and walked over to the domestic terminal, the automatic check-in desks asked if we wanted to check in to the earlier flight that was still available. Simple and easy.