Vancouver is an odd city for that. You can be in an upscale neighborhood, walk a couple of blocks in the wrong direction, and find yourself in an open-air drug market. Go another block and it's back to normal.
OTOH, for sheer number of transients it's hard to beat SF.
Aside from that, I think you can attribute a lot of the differences to the simple fact that Vancouver doesn't have any highways going through it or anywhere near the downtown core.
I prefer it to San Fran, but given the 4 degree(C) weather with rain today, I can appreciate someone taking the opposing view.