There's a double tap gesture on the second gen (and newer I think) version of the Apple Pencil that switches between the eraser and whatever tool you're using. I find this to be much more efficient and ergonomic than having to turn the whole pencil over to erase.