The ryzen 1400 would be better due to SMT,4cores 8threads where as the i5 only has 4 cores.
Also raw powerwise the 1400 beats the i5, in some games you see the i5 already running at 100% usage while the 1400 does not, the 1400 has more headroom for the future due to more threads