For novice investors, it is better to buy a fund, because the fund is a collective asset management plan, and the funds are managed by a trusted fund manager. After the fund manager makes money by investing in stocks, everyone shares it, and after the fund manager makes losses, everyone shares it, so the risk is smaller.
for investors who have certain investment experience, analytical ability and risk tolerance, it is better to buy stocks, because stocks fluctuate greatly and may get excess returns.
generally speaking, whether investing in funds or stocks, investors need to have a certain judgment on the market, and do not operate frequently.