Whether it takes more energy or not is not the main issue (I think it's probably about the same amount of energy for both).
To heat the car, it takes... heat. And for an internal combustion engine (ICE) vehicle, you've already got a ton of heat available for free. Waste heat. Heat that has to be removed from the engine to keep it from melting; this is done by the engines... wait for it... cooling system.
That heat is literally free. You've got to get rid of way more of it than is required to heat the passenger spaces of the car. You can keep the passengers toasty warm by just diverting 15 or 20% of the waste heat that would have been dissipated by the radiator into a little separate radiator that warms the air that goes into the passenger space.
To cool air takes energy, but not heat. It takes mechanical power, shaft power. Shaft power you get from ... heat. But to turn heat into shaft power, you've got to deal with Maxwell's Demon, Carnot's Equation, the Second Law of Thermodynamics, things like that.
Net result: in order to generate a horsepower of shaft power (to spin the A/C compressor), you need to generate three or four (maybe even five) horsepower of heat, that you still have to throw away using the radiator. And don't you dare let any of that get into the passenger spaces.
So you get the heat for free, and you've got to pay several times over - in terms of fuel usage - for the cool.
In an electric vehicle, you've got to pay several times over for both. You don't get nearly enough heat to keep the passengers warm in the winter from waste heat generated by the energy. That waste heat went into a lake near the distant electricity generating plant that made the juice to charge the EV battery. It's just wasted. You don't get to take advantage of it at all.
To get the cool, you've still got to spin the A/C compressor shaft, but you're doing that with electric power from the battery. Small potatoes next to what the drive motor(s) are using, but still nothing to sneeze at.
Tesla has a heat pump