I see your point: people who market themselves better do better, regardless of their skillset to back up their claims.
Which happens a lot everywhere, not just with programmers.
But it should be relatively easy to beat the scammers, learn how to market yourself properly, get testimonials to back up your claims, build your marketing message to answer questions and problems that your potential customers have. In other words: build your authority as a freelancer.