You need to consider: input voltage range, power, efficiency, size, weight, cost, line regulation, load regulation, noise and ripple limits, type of current limit, operating and storage temperature, design life, altitute, EMC - conducted, radiated noise, harmonics, dips, flicker, immunity and emissions, safety approval - creepage and clearance, component materials for flammablility, isolation voltage, fusing, case design, ventillation, audible hum, switching cycle life, inrush, overvoltage protection, surges and transients, leakage currents, common and differential mode noise, and probably many more.
That's why, unless you are designing for high
volume, its best just to buy them.