@Mike McCarthy- I agree that getting a credit card or two is often the easiest, fastest way to build a credit profile. But credit cards can be a double-edged sword. If the credit card accounts are too new, they don't help improve credit; they actually can hurt the score in the beginning. Credit card seasoning is longer than 1-2 years; the magic number is closer to 7 years before many underwriters will consider it a mature account.
Obviously you can't get to year 7 without going thru year 1 so you're exactly right, the time to build a credit profile to invest in real estate is RIGHT NOW for most people.
The caution would be for the person who is trying to purchase their own home in the immediate future and they don't have any credit. If they go out and gain (2) new credit cards, it might send a small red flag making the underwriter ask, "why does this person suddenly need so much credit?"
Also, every credit card inquiry shows up on a credit profile and each time the score can take a slight hit. This isn't the case for installment loans such as residential mortgages and auto loans. They bundle those as one inquiry every 14 days. This means you can go out and test drive multiple cars over the weekend, all the dealerships could pull your credit, and 1 inquiry would only impact your profile. The same if you were house shopping at multiple new build neighborhoods.
If @Gordon Olson is trying to purchase his first home to live in, going to his local Bank and qualifying for an agency loan is probably the best solution based on the reasons you mention. But, in his first post he states that reading @David Greene BRRR book has inspired him to get started himself which implies he's looking to buy an investment property to fix up and rent out, not live in. This means he needs non-owner occupied financing and therefore doesn't qualify for the first time home owner agency loan.
He shouldn't ignore the local community bank. This is a relationship business, and he needs to build a relationship with his local banker. He also needs to build relationships with other capital sources if/when his deals don't fall within the box the bank is looking to fund.
Gordon's plan may very well be to house hack his first deal by living in it a few years while he upgrades it a little at a time which would fit the community bank model. This also has the positive effect of building his credit during the hold period (as long as He makes payments on time) because it creates a mix of credit accounts; the credit card previously mentioned and the mortgage on the house. He might even go out and buy a used truck to haul drywall and paint. If he finances that purchase, it could help build his credit a little more.
Isn't real estate investing fun? So many variables to think about and no real wrong answers. There are multiple ways to achieve the same result, and one isn't much better than the other; we each get to choose our own path. Bigger Pockets makes it so much easier thanks to people like you and the rest of the community who share opinions and ideas. I learn something here every day.
All the Best!