Kyoto is more culturally immersed as it is the ex-capital where as Osaka is more for commerce developed from the old merchant town. Osaka is good for a day or less(mainly eat & drink) but Kyoto for 3 or more days. If you can find a hotel room, stay in Kyoto. You can commute but may get tired & miss out on night scenes.