The tilt is always 23.5 degrees, and it always points in the same direction (roughly to the Polaris star), but that means that it does not always point towards the sun or away from it. That depends on the time of year.
Let's say that in your drawing Polaris is "above" the earth orbit, and "left" from the center. Then the earth axis is tilt "to the left", matching your A direction.
At the "right" end of the orbit (as seen in your drawing), the axis points towards the sun, and that corresponds to June, meaning lots of sun (= summer) for the northern hemisphere.
Half a year later, in December, the earth is at the "left" end of its orbit (invisible part of your drawing), its axis still pointing to the left, which now means "away from the sun", resulting in less sunlight (= winter) for the northern hemisphere.
So, to literally answer your question:
Both A and B are correct, with A matching in June, and B matching in December (and looking into the solar system from the opposite direction).