It was Edward Wilding who stated Titanic had attained 23 1/4 knots at some stage on the run between Belfast and Southampton.
Olympic was never driven at full speed for the duration of an entire crossing.
What we do know is that the White Star Line's own records up to 1915 showed that her best average speed for a day's run was 24.2 knots. No doubt that was on an eastbound run and aided by an obliging current!
It is important to distinguish between a ship's progress through the water and what she achieves over the ground. (It may be, for example, that in the scenario above Olympic ran at 23.7 knots and was aided by a 0.5 knot current.)
We need to bear in mind Olympic underwent numerous changes to her propeller configuration throughout her career. If we look simply at the pre-war years, she had her original 1911 configuration, then the wing propeller pitches changed in November 1911, then the wing propeller pitches and diameter changed in the 1912-13 refit and the centre propeller changed to a three-bladed configuration. Titanic's wing and centre propellers were different to Olympic's original 1911 or November 1911 configurations and H&W anticipated she would achieve up to a 1/4 of a knot more in speed in comparison to Olympic.
Over twenty years, the developments in propeller design yielded some remarkable results. In 1936, Cunard's Aquitania was fitted with new propellers which reduced her slip by a substantial proportion (it may have been half, IIRC) and this gave her owners the option of increasing her speed by 2.5 knots or maintaining her speed and reaping the benefits of reduced fuel consumption. If Olympic had been similarly upgraded, her maximum speed could have increased significantly.
Taking a particular ship with a known hull form and propulsion system, her maximum speed is also dependent on many other factors, like as her state of loading, the weather conditions and such like. There's no precise answer.
Best wishes
Mark.