Cross Generation will be available on the Xbox. The PS5 and PS4 versions of the game can not play against each other. However, PS5 users can have the PS4 version installed and use that to play online races with PS4 users. Instructions are here:  Upgrade an eligible PlayStation4 game to the digital PlayStation5 version (US)