According to Hanafi Fiqh, second Jamat is makrooh in the mosque of locality. If the jamat is once performed there is no need to do the second jamat. Remaining people should offer salah individually. If there is any shop, house or open place outside the main mosque where jamat is possible then it can be done there.
Allah (Subhana Wa Ta’ala) knows Best
Darul Uloom Deoband