Private credit is less risky than private equity. And be aware of the No. 1 rule for choosing a private-equity fund.