$\Lambda_{\text{c}}^{+}$ fragmentation function in pp at 13.6 TeV vs $\text{D}^{0}$