The grammar of both is correct and synonymous, but 'inhabit' is very odd, since that word is used for animals, not plants. I suggest 'occurring / that occur', as here:
Botanists, ecologists, and geographers alike have long been interested in studying plant distribution patterns as they provide insight into the processes that facilitate diversification and speciation in plant