Both leasing and buying a car can help build your credit history if you make your payments on time. However, buying a car might have a slightly more positive impact on your credit score because it contributes to your "credit mix" – the different types of credit you have, which is a factor in calculating your credit score.