Birdshot is better than nothing, but there are better choices.
In 20 gauge, the common buck load uses 3 buck. Some times one can find 2 buck in a 3" 20 gauge shell. Either is much more effective than birdshot, though there's somewhat increased risk of overpenetration.
As with all defensive arms, effectiveness depends on proficiency.