Knowledge is considered to be like soap. There is nothing more purifying than knowledge. But if you hold on to knowledge, it will turn into ignorance and arrogance. That is why it is said to learn and forget.
Friends are not made by selection, you keep your friendliness and treat everyone as your friend from your side. If someone doesn’t consider you as their friend then that is their problem, not yours.