I think you are using Ghost's data for the blue lap.
If I remember correctly, the game doesn't give out proper S1 & S2 times for the Ghost, only some of the driver's input. And I am doing some "semi smart" stuff there to get the S1 & S2 times, as S3 time is always calculated from total time vs. S1 + S2.
I will look into this at the same time, when I do more work on the F1 2020.
The Ghost data is just a nice side product of getting some of the other car's data. But it is bit limited, as the data from the game is quite limited. With the save ghost data, the time trace, the speed trace + brake spots are the key on understanding the ghosts driving. The sector times are secondary, as you have the time trace, which tells you how much ahead/behind you are at any point and where you can gain more time.
But looking at the trace, it is quite interesting.
RED lost maybe 1.2 seconds to the ghost on the first sector (the lines above and below timeDiff 0 line is +-1Second). E.g. for T1 RED started braking at the same time, but the BLUE broke much less, did little off-on brake in the turn (slight lock-up?). This resulted the blue was quicker out of T1, gaining already about 0.4 seconds before T2.
And then at the end of S1 after the turns the BLUE was driving on lower gear, maybe getting better turning and better acceleration from the last left hander before the straight. There the BLUE gained maybe 0.6 seconds, as RED also lifted throttle (oversteer on uphill?). I might look at the driving lines on the Map view and compare them too. And maybe use also the comparison view on the side (the slider moves the cursor). My guess is that in the driving lines between the RED and BLUE there are quite many differences, especially in and out of T1 + the last left hand bender in S1.
Cheers.