I would go more for the logitech, although razer is not a bad brand (at all, omg) its prices are not so accessible when you want something quality price
Logitech mouses and keywords are great. I just talk about what I know and what I used.
Logitech G402 is one of best mouses I ever had. Good Quality material and also good software, is not perfect, but works fine. I recommend you take a look in Logitech G402 mouse is still possible to buy, there is the sucessor G502 you can buy in black but is not easy to find.
Keyboards of Logitech are also good but is not cheap. Good quality and good software.
Razer have also their quality, but I should go with Logitech or HyperX for mouses or keyboards. In headsets I think HyperX is much better than Logitech in some aspects, overall both does a great job. But in case of Headsets HyperX have a huge quality.
Corsair isn't bad for mouse. I like to stay away from Razer due to the "hype" we all know that eSports sponsored Razer many times and there was a "HYPE" that Razer makes you the best player blah blah, it always depend of course of the player and his experience and learning.
But that is my opinion, doesn't mean nothing. You can go with Razer. I prefer to look to alternatives like Logitech, HyperX, Steelseries.