If it leads to propagating against the right path or it is done with the intention that it is recommended, then it is prohibited in both cases. If it was with the intention of submission and humility, then it is permissible but not recommended.
If Ghusl cannot be performed or it leads to the dead body breaking up and damaging it, then it is not mandatory. If the dead body has not deteriorated to such a level then Ghusl is mandatory.