It’s always preferable to nail through the thinner piece into the thicker piece. Driving the nail at an angle may not be attractive, but will give you a stronger hold. Use a nail that is long enough to allow approximately two thirds of the nail to be driven into the thicker piece.