While similar, they are different. Pastry cream uses uses milk, eggs, butter and cornstarch. Bavarian cream uses cream, eggs and gelatin so it is much richer.