Performance
So in terms of performance, I would most likely always go with RecyclerView as it recycles items when they are off screen, were as the ViewPager doesn't.
How to
So todo this, you need to set the orientation of your RecyclerView to horizontal.
xml:
android:orientation="horizontal"
or Java (runtime):
LinearLayoutManager layoutManager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);
myRecyclerView.setLayoutManager(layoutManager);
Then to get the RecyclerView to act like a ViewPager and snap to items, you can use a LinearSnapHelper.
Everything you are looking for is actually explained in a nice tutorial here. Or if you want to dive in and just look and learn for yourself, here is the GitHub link of the tutorials sample project.