Two transactions can be included in the same block but will never be confirmed at exact same time in such a way it won't be distinguished. Even with both transactions in the same block the ordering will be visible to everyone onchain.
What do you mean by order?
Miners assign an index number to each transaction they include in the block and block explorers sort the transactions according to those index numbers.
A transaction having a smaller/bigger index number than another transaction doesn't mean it has been broadcasted earlier/later.
The entire possibility still depends on if the bot is able to compute it efficiently else if the first transaction has a bigger fee rate it may be confirmed really fast.
That's not a difficult task for the bot.