the "if (clk'event and clk='1')" are used to detect transition from ("U" to '1') or ("X" to '1') or ('0' to '1') or ("H" to '1')
where as rising_edge(clk) is used to detect transition from ('0' to '1')
So based on the requirement the respective commands shall be used