You are welcome!
I am speaking generally, not considering very rare ocassions.
It is very difficult, if not impossible, to do U.S fellowship on foreign residency program, I know many cases who did U.S residency on their foreign Residency in order to get U.S fellowship.
Elective courses help in Residency program & connections
It would be good in CV, but I believe that Research is the key for desired fellowship.
Community program, is a program that is not directed or administrated by University. University based programs are better in researches & connections.
There is something called Community university affiliated program, is a mixed program that contains some faculty from the university which affiliated with & some non faculty who work at the hospital, this type is still lower than Univ program.
Univ program, is the best, no one can deny that, Academic & clinical learning, Researches, connections....
You know, not all Univ's ideal, some are very big names, some middle, some too low to the degree lower than Community program.