This is genuinely a decision where reasonable parents and reasonable pediatricians can land in different places. Here are the factors worth weighing:
If SIDS risk reduction is your top priority, room-share for at least 6 months. The AAP recommendation exists for a reason, and the association between room-sharing and reduced SIDS risk is documented in multiple studies. Combine this with a firm, flat sleep surface, no loose bedding, and back sleeping for maximum protection.
If parent sleep deprivation is becoming dangerous, the nursery may be the safer overall choice. A parent who falls asleep holding their baby on the couch because they're too exhausted from room-sharing is in a more dangerous situation than a baby sleeping alone in a safe crib in the next room. This is not hypothetical — accidental co-sleeping on couches and recliners is a significant SIDS risk factor.
If you're somewhere in between, the 4-6 month window is a common compromise. Room-share through the highest-risk SIDS period (0-4 months) and then transition to the nursery when baby's sleep architecture matures and the SIDS risk naturally decreases. If you're also considering sleep training, the nursery transition often pairs well with that process.