It is important to find a balance between those two and the one that fits your project. For example, if it is a long-term project and you have time, you can get along with soft skills and train the junior developer to your standards. However, if you are in a hurry to deliver, it is better to look for hard skills.