Newcomb's paradox
If Omega is always right, then Omega would only put $1,000,000 in box B when you choose to take only box B.  Since $1,000,000 is more preferable than $1,000, only choosing box B makes the most sense and since Omega is always right, then you should choose box B.