I second the above comment, this is indeed the difference between a team and what shouldn't be a team. If people at a standup are talking about unrelated things then they indeed shouldn't be having standups, much less be considered a team in the first place. What's happening in standups and probably other meetings are symptoms of a structural issue people are either not seeing or failing address.
My rule of thumb for assessing a team is based on two simple questions: 1. Do people in the team work towards the same goal? 2. Do people in the team depend on each other? If the response to both questions is positive then by all means, have standups. In other cases, have a good look at whether it makes sense to call them a team in the first place.