It's not an analogy! It's another similar use of the word. As long as he's learning one more definition for the word flush, why not one more?
As in, your face will go flush if you realize your credit card reader is not flush because you might have just flushed all your winnings from having a poker flush down the toilet.