For better it worse, the sophistication of scripting doesn't seem to matter: if you give $1M to the first non-coinbase tx in a block, eventually miners will write systems to take that money :(
If you write any protocol where you let miners choose the winner, you get this problem if the effect of wi...