Having used both and worked at companies that make 3d engines as their main product, I've seen that one good way to approach this problem is to simply abstract away the API into a common interface that can be swapped between.
At a high level, the concepts that both APIs provide arent that unsimilar and abstraction is possible even if you are using some of the more esoteric features of each.