For Canon R5 and R6 at least the autofocus is leading edge: using dual pixel autofocus in its latest iteration: Dual Pixel CMOS Autofocus II https://photographylife.com/reviews/canon-eos-r6/3 My own experience is that these cameras leave the best DSLRs from Canon in the dust.
From my reviews of the more recent Nikon units, they are similarly excellent. The days when digital cameras were poor focusing are, IMHO, not currently valid.