How to choose which origin vertex to snap from?
Although I do not know exactly how to do it the way you are asking, I do know of a way that should make it snap to the correct vertex.
Move the highlighted cube to the far left of the other object.  When you choose to snap then, it will choose the closest vertex, which would then be the right one, as said by @Robin Betts.