there are fewer problems with adobe products, including animate, on pcs, but having a pc does not guarantee there won't be problems.
with macs, ventura os is more likely to have problems than monterey and m2 computers are more likely to have problems than m1 computers. ie, if you're looking to buy a new mac for use with today's animate version, buy an m1 with monterey and don't update the os.
that situation/advice may change with the next version of animate, or the one after that. ie, it seems dicey to make a decision to upgrate a 2019 imac based on a problem that may be solvable by less extreme measures.
no matter whether you upgrade your current computer or buy another one, get at least 32mb of ram.
is your current imac slow in general, or just with animate and/or ae?