A car flipped onto its roof in a crash in a residential street that had to be closed by police while the wreckage was cleared.