The viral loads in respiratory mucous at the peak are similar, sure, so from that one-dimensional metric that antivaxxers seem fixated in, it doesn't matter.
But vaccinated people:
1. Have fewer chances of getting infected.
2. The incubation period is shorter so, if infected they go around spreading it for a shorter amount of time.
3. Their disease lasts for much shorter so, again, less time spreading it around.
4. The symptoms are milder, so the chances of contaminating via coughing/sneezing are lower.
And let's not forget infecting other health workers reduces the quality of healthcare access overall.