Dealership VS Private Party Sale

I’m looking to purchase a vehicle very soon and I’ve been debating whether or not to go through a dealership or a private party (Facebook Marketplace, Craigslist, etc). I’m relatively young so my credit score isn’t great, which affects the rates of the loans I’d be getting if I were to finance a vehicle through a dealership, so I’d be paying a significant amount more. Private party sale appeals to me as I could just pay it off in full and there wouldn’t be any extra fees, but if I want to procede with building credit, how do I go about doing that? Should I just wait until I have more of a credit history and then get my second car at a dealership? Thank you!