Delay setting difficulty in overdub

Using Mac OS 11.6.2, Audacity 3.1.2
I’m trying to do an overdub and the delay is making me crazy! I record one track, then when I record the 2nd track, the second track is off the first by a significant amount. I’ve tried correcting the Delay setting in Preferences and just can’t get them to match. If I use Time Shift on the 2nd track, I can get them to match almost perfectly but I shouldn’t have to do that. It doesn’t matter if the setting is at 0, -200 or 200, the delay is always there and doesn’t change much. Suggestions? Thanks.