Leaving aside the easy straight line, you can drill pilot holes and use screws.
“you can drill pilot holes and use screws.”
That is the idea, but those 60 year old studs around here can be quite hard and hard to drill in a cramped area.. That is why they let you use the smaller screws.