Competition and Selection in Credit Markets