From my experience working across both industries: Software is harder than hardware (generally speaking).
The root cause is that hardware has clear purpose and is limited by the real world.
An aircraft from 2015 or from 2000 does the same thing: Get you from Point A to Point B, same world, same constraints, same goal.
A software that does something today. It doesn't give any clue about what it will be or do in 2-5-10 years.
IMO: Software projects are way more ambitious, more complex and evolving faster than hardware. What is expected from software is NOT expected (nor achievable) in hardware at all, that's one of the first thing I noticed.
---
Nonetheless, hardware can run software onboard. So you get hardware and software dev projects, both running along. That get some quirks of both world. IMO, the hardware [and real world] limitations will quickly limit the software.