Luke Skywalker is a great character, but I think the reason so many people prefer Han Solo is because they like their heroes to be a bit more flawed and less transparent.
Same reason a lot of people prefer Batman to Superman. People prefer heroes they can most indentify with and since so many people in this world are cynical assh*les, of course they're gonna prefer Han.