Pilot, clearance and countersink
A wood screw needs three things drilled correctly. The pilot hole, in the lower (receiving) piece, is sized to the screw's root diameter so the threads bite the wood while the wood ahead is not forced apart. The clearance hole, in the upper piece, matches the shank so that piece is pulled down tight rather than held off by the threads. The countersink lets a flat head sit flush. Get the pilot too small and you risk splitting or snapping the screw; too large and the threads cannot grip.
Harder, denser woods need a pilot closer to the screw's root diameter (and sometimes a slightly larger one) because they resist the screw and split more readily. Softwoods tolerate a smaller pilot, which gives more thread engagement and holding power.