Nagarjuna in his letter of a friend said
(40) Always meditate properly on love, compassion, joy, and equanimity. Even if you do not receive, like that, the highest (goal, nirvana), you will (at least) attain a Brahma realm’s bliss.
But then in another verse he said, paraphrasing the sutta AN 8.29
(63) Rebirth as someone holding a distorted, antagonistic outlook, as a creeping creature (animal) , a clutching ghost, or in a joyless realm, or rebirth where the words of the Triumphant are absent, or as a barbarian in a savage border region, or stupid and dumb,
(64) Or as a long-lived god – rebirths as any (of these) are the eight faulty states that have no leisure. Having found leisure, being parted from them, make effort for the sake of turning away from (further) rebirth.
Leisure here usually interpreted as leisure to practice dharma.
But this is advice given to someone already reborn as human. So that they don’t waste their opportunity.
But from the verse above, if we had to be reborn anyway, gods realm are not too bad.
Although, in the next part when he discuss all the fault of samsara, he said this about heavens:
(98) Even though higher status (celestial beings have) great bliss, the level of suffering at their death and shift-down is much greater than that. Having considered like that, respectable people would never crave after exhaustible higher status rebirth.
(99) “The color of your body turns ugly; there’s no delight in your seat; your flower garlands wilt; your clothes become smelly; and sweat comes out on your body, which it never did before,”
(100) (These) five early signs that herald your death and shift-down from a higher status appear to celestials in higher status rebirth states, just as signs of death (appear) to humans on earth, heralding impending death.
(101) If, at the shift-down from the celestial worlds, they’ve no remainder left at all of constructive force, they transform, thereafter, without control, to a rebirth state as a creeping creature, a clutching ghost, or a being trapped in a joyless realm, whichever it may be.
(102) The would-be divine also have great mental suffering because of hostility, by nature, toward the glory of the celestial ones. Although having intelligence, they cannot see the truth because of obscurations of (their) rebirth state.
(103) Since recurring samsara’s like that, there’s no wonderful rebirth as a celestial, a human, a joyless realm being, a clutching ghost, or a creeping creature. So know that rebirth is something that turns out to be (no more than) a vessel for numerous harms.
(104) So, even if a fire has suddenly broken out on your head or your clothing, give up trying to cast them off, and make effort instead for the sake of trying to extinguish further compulsive rebirth. There’s no other necessity more superior than that.