Layer 1 vs. Layer 2 Blockchains: Unraveling the Scalability Puzzle