I can't say for Nikon but 23mm LM WR vs 35mm GM, the Sony image quality beats the Fuji 23mm in all aspects. I do some landscapes, portaits but I mainly do keyboard photography (taking pictures of computer keyboards). The fine details coming from the 35mm GM is night and day. If I gave the GM 10/10, the fuji would get around 6/10.
For what its worth, the new 24-70mm GM II retains more detail (textures of keys on the keyboard) compared to fuji.
Can't deny though, its great the Fuji is much smaller and lighter to carry around. I'm not sure if its the XT-4 sensor or what but I've sold the XT-4, kept the 23mm LM WR, and hoping the XT-5 will close the gap?
First camera I take walk about is Fuji. First camera I take to 'work' is Sony
Sony: A7IV/A7C
Fuji: XT-4.
Hope this helps from an amateur