We explore a dual scenario of generalized inflation and bounce cosmologies, producing a scale-invariant curvature perturbation spectrum. Bayesian analysis with pulsar timing array data identifies, for the first time, viable regions from inflation and bounce that simultaneously explain stochastic gravitational wave background (SGWB) signals and CMB anisotropies. Bayes factor calculations strongly favor this dual scenario over conventional sources and provide initial evidence of a duality between inflation and bounce regarding SGWB, offering new insights for early universe model-building and future observations.