With FileVault active, disk speeds on a 2015 i5 were significantly faster than those on a 2017 m3. Not sure whether it's the SSD size (number of chips) or whether the i5 chip has some functionality that the m3 is lacking, but I would opt for the i5/512 in your comparison.