As said prior, your major does not factor into your service selection. A companymate was Poli Sci and they went Subs. The only way I can see a particular major helping someone is officer exposure. Ex. An Aero guy/girl will not have to work as hard to get exposure to pilot/NFO profs as others. Same goes for cyber/CS/CE/IT majors and Intel/IP officers.
If you end up going Pilot/NFO, cybersecurity studies would probably be limited outside of graduate studies either worked in after your commission or on a shore tour (either on your own or via the Navy). One's priority as a pilot/NFO is learning the aircraft and how to operate/employ it. However, there are some communities that will expose you to cyber-esque operations. Those communities are the Growler (VAQ) and the EP-3 (VQ). The Growler does electronic attack, which denies, degrades, and sometimes destroys the enemy's use of the electromagnetic spectrum. The EP-3 conducts signals intelligence (SIGINT) and does some cool stuff. The Growler is a relatively new aircraft and since it is the only DoD asset that currently does electronic attack, there is a high demand and the future is bright. The EP-3 has no current replacement, so the future is unknown, but SIGINT is a vital capability.
Now Pilot vs. NFO: Pilots are primarily focused on flying the aircraft while the NFOs are mission-focused. There are many nuances to this and that's not to say the pilots and NFOs aboard an aircraft aren't fully integrated with each other. Quite the contrary. While NFOs are working their absolute magic making the mission happen, pilots are putting the plane in the right piece of sky and on profile to enable the NFOs to do their thing. That doesn't just happen. Both types are knowledgeable about the mission and they use a whole lot of teamwork. In a sentence: NFOs need pilots so they can make missions happen, Pilots need NFOs to have a job (helos/single seat jets notwithstanding).
If you really want to fly planes, become a pilot and do the cyber thing a bit later. Just realize your primary job is controlling the aircraft. Now if you want to fly, but want to be more mission focused, NFO is the right gig. In a Growler, the Electronic Warfare Officer (NFO/backseater) is really looking at the beeps and squeaks and is making a lot of tactical decisions on how to approach enemy electronic threats/capabilities. In the EP-3, NFOs are rubbing elbows with the IntelOs, cryppies, and all the other incredibly talented and intelligent people that go flying with you. My 2/C Cyber teacher was an EP-3 NFO and he absolutely loved his job.
There are no losers in Naval Aviation... or in the Armed Forces. Good on you for doing your research early and don't buy into the narrative about majors. What matters is your QPR. No such thing as stuff as like "A Mech E major with a 3.0 is looked upon as 3.5" or anything like that. Pick something you enjoy, something your good at, and/or something you'd not hate doing at 0200.
This will be my last bit of unsolicited advice, but as much as the military is a meritocracy, it is still like every other industry: it is who you know, not what you know. If you go cyber, but still want to fly, go hit up as many pilots/NFOs as you can. Get a mentor. It does nothing but help you. It shows interest and interest/motivation can take you farther than sheer talent. Showing how much you care can help overcome a less than stellar package when service selection comes around. Nobody's gonna want to take someone who has a not so good record and unknown intangibles/alibies. This advice goes for every community. Don't feel bad reaching out to a SWO if you have a temporary/casual interest in SWO, for example. They love talking about their jobs and they know the decision you have to make. Almost every officer wants to see you go for the community that is right for you, even if it's not there. At the minimum, you learn more about the Navy, and that's never a bad thing.
Buckle up, enjoy the ride!