Asking for a friend... "Should I jump ship from my great corporate job as an engineering lead/manager to go run the technology operations of a nearly-profitable pre-Series-A SaaS startup?"
Both offer similar technical challenges, problems to solve, etc. Both have similar compensation.
Thoughts?
If you can handle the risk and stress, the CTO job will likely be more rewarding.
That said, it's absolutely critical to find a mentor outside of the company to lean on. It's likely that your peers will know nothing about running engineering teams, and having an experienced voice of reason can make-or-break your experience.