When transitioning from sweeping downward to upward, is it better to do hammer-ons and pull-offs or pick it?

I find picking it easier but there are a lot of videos on YouTube saying that you should use hammer-ons and pull-offs
well, if it's written a specific way, you should play it as such. if not, do whatever sounds best.
Quote by AA00P
Listen to the man, he's Jewish.
You can do it either way, but there's a slight sound difference. I personally just do whatever I feel like and that's picking it.(Unless the hammer/pull is absolutely necessary)