Dear student
and are basically the same relation. First one is usually used when I is constant and second one when V is constant.
Using one can be derived from the other.
In case of parallel circuits when V is constant we use V2/R.But in case of series circuit when I is constant we use I2R.
Resistance is the property of material and resistance of a conductor depends upon the nature of its material, such as length of the conductor, cross-sectional are of the conductor, temperature, etc. It does not depends on the power. Electric power is basically a derived quantity, which we derive by using Ohm's law and it is not the basic property. Thus you can not conclude that power is directly or inversely proportional to the resistance. However, electric power of an electric circuit depends on the current and voltage, since it is the function of current flows through it against a potential difference.
Regards