Depends on the work environment, is it an office? If these people have to work as part of a team their attitude is often more important than anything - a sour attitude can ruin productivity not just for one but for many. If they are working solo, it doesn't really matter. If the person is a prick, that's up to them to deal with because they work alone.
Assuming it is a social, team-based office environment, the one with the people skills stays. Hands-on skill and knowledge can be taught, but a good attitude is often innate and very difficult to teach. A bad attitude in an office environment is like a drop of black in a pail of white paint - it spreads and taints the whole batch.