The Marines tested two groups of recruits. One was in strict lockdown, mask-wearing, hand-washing, sanitizing everything constantly. The other group lived the ordinary lives of Marines. The result?
Which is to say that the nonparticipants actually contracted the virus at a slightly lower rate than those who were under an extreme regime. Conversely, extreme enforcement of NPIs plus more frequent testing and isolation was associated with a greater degree of infection.
Check the article for the details and the data.