If ductwork or a furnace sits in the attic, foam the underside of the roof deck so that equipment ends up inside the insulated space. If the attic holds nothing but framing, air-seal the attic floor and insulate there.
More detail
Many Central Ohio two-stories built from the 1990s on, especially in Dublin, Powell, Lewis Center, and Westerville, have a second-floor air handler or flex duct running through the attic. Insulating the floor beneath that equipment leaves it working in a space that can fall toward the 5 degree Columbus winter design temperature, so every duct leak becomes a direct loss. Moving the insulation up to the roof deck creates an unvented attic, which the Residential Code of Ohio permits under section 806.5 with conditions, including foam in direct contact with the sheathing and, in Climate Zone 5, a Class II vapor retarder rating. If the attic has no mechanical equipment, the floor is cheaper: seal the top plates, wire holes, and fixture boxes, then build depth to R-49 with foam or blown fill. The roof deck moisture FAQ covers what keeps the roof deck approach safe here.