Ilgar https://grapheneos.org/install/web#prerequisites
I think the part that might be more applicable for OP’s situation would be
Officially supported operating systems for the web install method:
Arch Linux
Android 13 [and above] with Play Protect certification
Ilgar if I don't trust other os I'd factory reset via settings>system>reset options after GrapheneOS install before actually configuring it
Checking the verified boot key for your device and using Auditor are the recommended ways to check the integrity of a GrapheneOS device. I’m not sure if resetting does anything to further ensure integrity.
I believe the Samsung phone could be more trustworthy than the Arch Linux PC, due to Android having more security capabilities like verified boot.