Upper leg bends inside lower leg
For this you may want to subdivide the object, then make it a softbody. When animated, the softbody will collide with itself (with the right settings), and it won't look as weird. Make sure you check the Self collision box so that it does collide with itself.