Neck and neck

To be equal or nearly equal in a race or contest.

The two teams were neck and neck in the race to win the national championship.