Most often (depending on the cycle in the SSD tech generation) larger SSDs are faster (see new PCI4 controllers who need a number of NAND chips for best performance). A 256GB has a high probability of being not the best choice for compilation. A 2018 MacRumors thread shows:
But of course this could be very different with the new iMac which might have a very fast write SSD in the 256 GB model.