It's more complex than that. To heat up by those 2C, water takes over 4 times as much energy as air does. On the other hand, most of the warming happens in the upper layer of the ocean, which is a big issue because it messes with the ocean's circulation.