Edit: Both are still extremely cool though
Now, the Apollo program also cost much more than the robotic missions. If you are willing to invest enough (e.g. Apollo was >1% of US GDP/year for most of the 60's) you can get an enormous amount of scientific return from a manned mission, but robots are useful for budgets that can't cover a manned mission.
If your goal is to plant a flag and ship back ~400 Kg of moon rocks, you could do it today, using robots, for a tiny fraction of a manned mission's budget. The thing is, bringing back 400 Kg of moon rocks is not 400 times more valuable than bringing back 1 Kg of moon rocks.