If a node observes a fork in the bitcoin chain, then the node will choose the chain that has the highest difficulty (sum of
difficulty in each block of the chain).
difficulty changes only once every 2016 blocks. So, if a fork occurs somewhere in between, then the
difficulty is the same for both the side chains right? How does the node pick the main chain then? Just randomly?