\(A=\dfrac{3^{123}+1}{3^{125}+1}\Leftrightarrow3^2A=\dfrac{3^{125}+9}{3^{125}+1}\)
\(9A=\dfrac{3^{125}+1}{3^{125}+1}+\dfrac{8}{3^{125}+1}=1+\dfrac{8}{3^{125}+1}\)
\(B=\dfrac{3^{122}+1}{3^{124}+1}\Leftrightarrow3^2B=\dfrac{3^{124}+9}{3^{124}+1}\)
\(9B=\dfrac{3^{124}+1+8}{3^{124}+1}+\dfrac{3^{124}+1}{3^{124}+1}+\dfrac{8}{3^{124}+1}=1+\dfrac{8}{3^{124}+1}\)
\(9A< 9B\Leftrightarrow A< B\)