Sorry, the fact that Xbox version is smaller confused me. What might be the reason for Xbox install being 20 gigs smaller than PS5 one given that PS5 compression is generally better?
Imagine you have a 1GB game, with a 500MB patch. To be able to play the game while downloading, you need the full patch space available. To apply the patch to the game, you need to grab the old 500MB, stuff it somewhere, and replace it with the new 500MB (in that order, otherwise if the update is interrupted, the game is screwed and you need to redownload the whole thing).