The system will buy one hand and sell the other, that is, two transactions will be closed, instead of offsetting each other yourself.
Futures trading is a T+0 two-way transaction, that is, when the position is opened on the same day, the position can be closed on the same day, and you can make money as long as you are in the right direction.