sadly you can only install grapheneos on pixels due to the strong security requirement grapheneos requires on devices for them to support it (like relocking the bootloader with a third party os installed)
seems like xperia is supported by divestos though which is still a good alternative
https://eylenburg.github.io/android_comparison.htmhttps://divestos.org/pages/devices