You could take 50 people, vaccinate half and give half a placebo, infect them with Covid, then put them in 50 rooms with 50 other unvaccinated people (so each has two people) for 2 weeks and see what happens.
The reason you can’t do it without a challenge trial is exactly because of what you said - you can’t track infections in the community.
Also note that had this been run last spring you've doubled the size of the trial and therefore the number of hospitalized patients who would not have life-saving therapeutics. By comparison, the BioNTech/Pfizer vaccine had over 40,000 people in its trial. Not sure you could even run a trial that big with even a tenth as many people.
In a challenge trial you can make people cough in each other’s faces, or literally inject them with Covid depending on the study, which raises your chance of getting people infected and seeing the impact. You would expect the control group to have a very high infection rate, and to see the difference in the study group much more easily.
I’m not saying 100 people would be enough, but you would need significantly fewer people fewer to get a good level of confidence.
And again -- the backup therapeutics that enable any challenge trial were not broadly available until a month or two before vaccines went into wide deployment. (You will note that nobody is volunteering for a challenge trial for any drugs or vaccines for our other ongoing pandemic, HIV. Lack of backup therapeutics is a big reason for that.)
People were actually volunteering for a challenge trial for Covid prior to theraputics being available - because Covid actually is low-risk for the groups in the challenge trial (young people) and the vast majority of people recover. I don't think theraputics are necessary for a challenge trial, as long as there is sufficient benefit, the risk is sufficiently low, and volunteers are aware of the personal risks (aware this criteria is ambiguous!).
HIV is incurable, however there are excellent therapeutics. Despite this, the prognosis of HIV is much worse than someone with Covid.