What material is the best for your socks to be made out of?

I usually wear nylon but i found some great compression socks that was made out of cotton which i love but i noticed that my legs are achy and tired. Both pairs are the same compression 20-30. Thanks