Analysis of the coincidence method for comparing atomic and nuclear lifetimes