Yes the lesson Bush learned is who trusted in him and who he cannot trust.
The lesson the Deomcrats learned is that they are free to viciously attack the next nominee since they can point across the isle and say the Republicans did that to their own nominee whom they treated with more contempt than Justice Ginsburg.