For small home jobs, screw size is mostly about length, thickness, and whether the fastener matches the material, load, and pilot hole rather than about one universal best number.
The main screw families matter because wood screws, machine screws, and sheet metal screws are built to grip different materials and fail in different ways when swapped carelessly.