The i3-1215U, despite having less performance cores, is a more capable chip for both single and multi-threaded applications. However, crucial at this price point is being able to expand your RAM, especially for programming work, and storage. 4GB is not nearly enough.
The Ryzen APU only supports DDR4, while the 12th Gen i3 may support DDR4 or DDR5 depending on what the manufacturer has used. Look into whether either computer has one or more RAM slots for future expansion.