You don't need to pay interest to have a great credit score. You need to use credit wisely. What you have now is a thin file, so you need to beef it up.
If you have a student loan make the payments on time. If you can pay it all off by the time you need the home loan that will give you ability to afford the size home loan you need.
If you must get a car loan, again make the payments on time.
These types of loans will influence how much of your income can be applied to your home expenses. So you would like them as small as possible when you are applying for the home loan.
Get a small number of credit cards. Use them. But pay them off each month. You will spend zero on interest but the wise use of the credit will help your score.
Consumer loans frequently have higher rates compared to the ones for mortgages. Getting the loan just for the privilege of paying interest is expensive. Even the deals offered by some stores, no interest for 12 months, can be a trap. If you are even one day late they will demand that you pay all the forgiven interest, which may be at 18% or higher. You generally have to get a store credit card to get these deals, that just adds to your pile of credit cards, of course it is a credit card that can only be used at one place.