I encountered this behavior quite a few time already, where if you move to a tile beyond line of sight and have to pass through other units to get there, if an enemy is revealed on the way your unit would stop right where it is currently even if it's on top of another combat unit, and you have the option to move to another tile