As #32214 has shown, registering a singleton means that it's completely ignored by AOT since AOT can't know how the bean instance has been instantiated. It's very similar to having a custom instance supplier hidden behind a lambda.
We should make it more clear in the AOT chapter that this won't work and why.