I am putting together a circuit board that is supposed to do its own power regulation. I need to convert 120VAC to ~5VDC. Due to the very limited real estate on the PCB, I would rather not use transformers. With some research, I was able to find two different circuits that can achieve this conversion without the need for a transformer.
The first circuit utilizes a primary-side regulator and has an offline buck topology. From the datasheet, the circuit looks like this:
The second circuit does not have a regulator, but rather a full-bridge rectifier. The circuit looks like this:
The output I am aiming for should be around ~5 V (although the output of the converter will be run through an LDO regulator) and a current of at least 50 mA.
My question is, what would be the pros and cons of using either of them? I am guessing the latter could be less efficient, however has fewer components and no ICs, it will be cheaper and would require less area on a PCB. Would that make it a better option?