ATmega8U2 with 2 serial ports

I think you don't understand.

Physically there will still be only one serial port

Virtually, the Arduino Uno will show up as two serial ports

Both of the virtual serial ports will still operate the single physical port

But, the computer will only require one of the two virtual serial ports to be closed before uploading, while a second serial terminal can remain open