ババを引く(ばばをひく)

Japanese vocabulary

Meaning: to get the short end of the stick; to get the bad side of a bargain; to draw the joker (when playing Old Maid)

See it used in real works