@Abba Actually Miracast works quite well on the Pixel 3a now. But it is hit or miss if it will work with any particular Smart TV or dongle. If you are looking to buy a dongle, then as mentioned before the Microsoft one is the best bet.
Otherwise Sony and Samsung smart TV's also seem to consistently work.