If you're trying to use Apple Music without a family plan, then you may find that trying to play Apple Music independently from the two devices at the same won't work, but if one is playing purchases or content from an iTunes library then it ought to be OK. iTunes can AirPlay to both Apple TV and HomePod at the same time.
tt2