But for a bigger place the setup is costly: you either need a couple units or a proper design, otherwise you'll end up with a only a portion of your home warm. Plus, AC units are still significantly more expensive than just a "trash-burner" type of furnace that is the most popular.
Electric heat should be the cheapest form. That would end a lot of air pollution that is a very serious health risk in Poland.
Alternatively, if you go by the relative price of electricity compared to natural gas, typically electricity has three times the price for the same amount of energy. In that case, you would need a heat pump with a COP of >2.7 to make heating cheaper than using a gas burner.
Such heat pumps do exist now. The benefit is that if/when the electricity grid transitions to renewables, you are sorted.
So for resistive heating (where electric tops out at 100%), it's likely that a home furnace is converting more of the fuel into heat in the home than the combination of the power plant and electric heater.
An easy gut check for this is how much cheaper natural gas is to heat with than resistive electric. As a sibling comment says, a heat pump really improves the numbers for electric.