Best AWS Instance Type for Neo4J

I see that the best recommended AWS instance type for Neo4J is usually t2 or t3 and — sometimes — m2 and m3.

However, as I'm having problems mainly with memory consumption I'm considering getting an R6g instance, which is memory-optimized (and has less CPUs) —

What do you think about this? Which instance would be the best?

I think the right answer is "it depends".

can you tell us about the db, the instance it is on, the configuration you are using and the memory consumption issue?

how are you factoring in the data aspects specific to your graph db? (nodes/rels, connectivity, on disk size, cache requirements, etc)
what are the primary usage patterns? (number of users, types of queries...)