A problem is that you can’t necessarily tell the big winners in advance, and if you don’t diversify enough, you will likely miss their big gains, unless you’re paying very close attention.
Avoiding bad companies seems like it would be easier, but if everyone knows they’re bad then they wouldn’t get much weight anyway, and maybe you’re wrong.
But I’m just explaining why it may be harder than it seems to beat an index, not saying it’s impossible.