Adding renewable energy sources (RES) to an electricity market has an ambiguous effect on wholesale prices. The merit order effect (MoE) has a downward pressure on prices while, with market power, higher inframarginal rents will tend to increase prices. We quantify the interaction of the two effects in the Ontario electricity market. We identify the market power effect by simulating transfers of RES capacity from the fringe to larger firms: these transfers increase prices by up to 24%. We then add RES capacity and allocate it to players with varying levels of market power. Following a net expansion of RES capacity of 5% relative to total capacity, prices decrease by 30% when new capacity is assigned to the fringe, but only by 7% when assigned to the largest firm. Our findings show that the MoE is largely mitigated by market power, hence the importance of the market structure in the design of uniform incentives for RES adoption.