You should first investigate and budget which lenses you will buy and use. Nikkor lenses are significantly more expensive than Canon lenses. You might also consider third party lenses.
If you are sticking to the kit lens, the Nikon kit lenses are significantly better than the Canon ones.
Genarally, depending on the model, Nikons have a better dynamic range and better high ISO performance (low light), which is where the "Nikon is better for photo" comes from.
You should also go to a shop and try both Nikon and Canon cameras. They behave very differently: menu system, buttons, feel. Ergonomics are more relevant than you think, and people have different preferences.