@Ian986 what model/year do you have?
On my moterra neo 2 (2021), 10-52 cassette, I also decided to change my chainring from the original 34T to 36T. I fitted a 36T Sram x-sync 2 aluminum chainring.
The reason for this change was not to gain top speed, but to optimize my cassette usage and maintain straighter chain line.
With my riding and a 36T chainring, I'm now mostly using the cogs in the middle of the cassette. A more balanced use of the drivetrain. And no impact whatsoever on my climbing ability (52T was overkill for eMTBs anyway and rarely used).
Since the chainring is spider mounted (104 bcd) the install was fairly quick. I just took down the pedals.
With 36T, my chainstay / chainring clearance is 2-3 mm. A 38T chainring would not fit though and touch the chainstay.
Also going with 36T (from 34T) didn't require a chain extension. I could keep the current chain length.
From a riding experience, my top speed on 10x36 was not much increased. But I now use my cassette more efficiently.
In retrospective, going to 36T was a good upgrade for me.