While congregational prayer is a duty on the Muslim community, it is not obligatory on every single one of us to attend every single obligatory prayer in the mosque. Allah has given us a time range for each prayer and allowed us to pray individually because He knows that our circumstances may be difficult and we may not be able to attend congregational prayers all the time. Nevertheless, we must be keen to pray with the congregation in the mosque as frequently as possible. There cannot be two congregations in a mosque. If the two start at the same time, both are invalid. If one starts after the other, the second is invalid.