The highest bid always wins. This rule supersedes all others. However, there is a special caveat. When it's sniper against sniper, you definitely want your bid to come in before the other person's bid, not after. Read more about choosing sniping lead times.