Hi all!
I figured I'd ask on this forum about possible fixes/recommendations/ideas for what I'm trying to do.
I've been trying to make a small circuit which switches its output either from a regulated +5Vdc source, or from a +4.2Vdc source (from an 18650 cell).
The idea is that when the 5V is connected, the output is 5V but when the 5V is disconnected, the output is 4.2V instead.
I have come up with a circuit so far, but after building and testing, it does not seem to work

I have attached the circuit I have come up with so far.
Anyone have any ideas of what I can do?