The former.
Notably, this means that in certain hypothetical circumstances a node can reorg to a shorter chain, with more total work.