Letter of Recommendation: Reputation vs personal relation
The more a person knows of you, the more positive things they will have at their disposal to write about. As you explain it, your second option knows about your skills and probably could redact a great recommendation letter.

That being said, I do not think that it hurts to ask both. If both agree, you can submit both letters