Perfectly competitive innovation or patent protection: What is better for growth and social welfare?