If you're not ordering, there is no first row to update, it will just "pull one out of the available ones".
If you're clear about a pseudorandom one of the two rows will be updated, you can use LIMIT
with the update;
UPDATE mytable SET col1 = '789' WHERE col2='245' LIMIT 1;