The advantage that a screw has over a nail is: a screw can be inserted with less force than a nail.
Screws have threads that allow them to grip the material more effectively, which means they can be driven into the material with less force compared to nails, which rely on friction and impact to hold in place. Additionally, screws tend to provide better holding power and can be easily removed and reused.