What happens if two organisms have the same niche but in different habitats?

two memebers of the same species have the same niche but two different species cannot share the exact same niche in the exact same habitat